Class: Solargraph::Source::Chain::Link

Inherits:
Object
  • Object
show all
Defined in:
lib/solargraph/source/chain/link.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(word = '<undefined>') ⇒ Link


9
10
11
# File 'lib/solargraph/source/chain/link.rb', line 9

def initialize word = '<undefined>'
  @word = word
end

Instance Attribute Details

#last_contextObject

Returns the value of attribute last_context


7
8
9
# File 'lib/solargraph/source/chain/link.rb', line 7

def last_context
  @last_context
end

#wordObject (readonly)

Returns the value of attribute word


5
6
7
# File 'lib/solargraph/source/chain/link.rb', line 5

def word
  @word
end

Instance Method Details

#==(other) ⇒ Object


29
30
31
# File 'lib/solargraph/source/chain/link.rb', line 29

def == other
  self.class == other.class and word == other.word
end

#constant?Boolean


17
18
19
# File 'lib/solargraph/source/chain/link.rb', line 17

def constant?
  is_a?(Chain::Constant)
end

#resolve(api_map, name_pin, locals) ⇒ Array<Pin::Base>


25
26
27
# File 'lib/solargraph/source/chain/link.rb', line 25

def resolve api_map, name_pin, locals
  []
end

#undefined?Boolean


13
14
15
# File 'lib/solargraph/source/chain/link.rb', line 13

def undefined?
  word == '<undefined>'
end