Class: Solargraph::SourceMap::Completion
- Inherits:
-
Object
- Object
- Solargraph::SourceMap::Completion
- Defined in:
- lib/solargraph/source_map/completion.rb
Overview
The result of a completion request containing the pins that describe completion options and the range to be replaced.
Instance Attribute Summary collapse
- #pins ⇒ Array<Solargraph::Pin::Base> readonly
- #range ⇒ Solargraph::Range readonly
Instance Method Summary collapse
-
#initialize(pins, range) ⇒ Completion
constructor
A new instance of Completion.
Constructor Details
#initialize(pins, range) ⇒ Completion
Returns a new instance of Completion.
17 18 19 20 |
# File 'lib/solargraph/source_map/completion.rb', line 17 def initialize pins, range @pins = pins @range = range end |
Instance Attribute Details
#pins ⇒ Array<Solargraph::Pin::Base> (readonly)
10 11 12 |
# File 'lib/solargraph/source_map/completion.rb', line 10 def pins @pins end |
#range ⇒ Solargraph::Range (readonly)
13 14 15 |
# File 'lib/solargraph/source_map/completion.rb', line 13 def range @range end |