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:


15
16
17
18
# File 'lib/solargraph/source_map/completion.rb', line 15

def initialize pins, range
  @pins = pins
  @range = range
end

Instance Attribute Details

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

Returns:


8
9
10
# File 'lib/solargraph/source_map/completion.rb', line 8

def pins
  @pins
end

#rangeSolargraph::Range (readonly)

Returns:


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

def range
  @range
end