Class: FFI::Clang::CodeCompletion::FixIt
- Inherits:
-
Object
- Object
- FFI::Clang::CodeCompletion::FixIt
- Defined in:
- lib/ffi/clang/code_completion.rb
Overview
Represents a fix-it that must be applied before a completion can be inserted.
Instance Attribute Summary collapse
-
#range ⇒ Object
readonly
Returns the value of attribute range.
- #text ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(text, range) ⇒ FixIt
constructor
Initialize a fix-it.
Constructor Details
#initialize(text, range) ⇒ FixIt
Initialize a fix-it.
206 207 208 209 |
# File 'lib/ffi/clang/code_completion.rb', line 206 def initialize(text, range) @text = text @range = range end |
Instance Attribute Details
#range ⇒ Object (readonly)
Returns the value of attribute range.
201 |
# File 'lib/ffi/clang/code_completion.rb', line 201 attr_reader :text, :range |
#text ⇒ Object (readonly)
201 202 203 |
# File 'lib/ffi/clang/code_completion.rb', line 201 def text @text end |