class Solargraph::Source::Chain::Literal
Public Class Methods
new(type)
click to toggle source
@param type [String]
# File lib/solargraph/source/chain/literal.rb, line 11 def initialize type @type = type @complex_type = ComplexType.try_parse(type) end
Public Instance Methods
resolve(api_map, name_pin, locals)
click to toggle source
# File lib/solargraph/source/chain/literal.rb, line 16 def resolve api_map, name_pin, locals [Pin::ProxyType.anonymous(@complex_type)] end
word()
click to toggle source
# File lib/solargraph/source/chain/literal.rb, line 6 def word @word ||= "<#{@type}>" end