Class: Solargraph::SourceMap::Completion

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(pins, range) ⇒ Completion

Returns a new instance of Completion.

Parameters:



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

#pinsArray<Solargraph::Pin::Base> (readonly)



10
11
12
# File 'lib/solargraph/source_map/completion.rb', line 10

def pins
  @pins
end

#rangeSolargraph::Range (readonly)

Returns:



13
14
15
# File 'lib/solargraph/source_map/completion.rb', line 13

def range
  @range
end