class Solargraph::Source::Chain::Head
Chain::Head
is a link for ambiguous words, e.g.; `String` can refer to either a class (`String`) or a function (`Kernel#String`).
@note Chain::Head
is only intended to handle `self` and `super`.
Public Instance Methods
resolve(api_map, name_pin, locals)
click to toggle source
# File lib/solargraph/source/chain/head.rb, line 11 def resolve api_map, name_pin, locals return [Pin::ProxyType.anonymous(name_pin.binder)] if word == 'self' # return super_pins(api_map, name_pin) if word == 'super' [] end