Class: Solargraph::Source::Chain::GlobalVariable

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

Instance Attribute Summary

Attributes inherited from Link

#word

Instance Method Summary collapse

Methods inherited from Link

#==, #constant?, #initialize, #undefined?

Constructor Details

This class inherits a constructor from Solargraph::Source::Chain::Link

Instance Method Details

#resolve(api_map, name_pin, locals) ⇒ Object



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

def resolve api_map, name_pin, locals
  api_map.get_global_variable_pins.select{|p| p.name == word}
end