Class: Solargraph::Source::Chain::Hash
- Defined in:
- lib/solargraph/source/chain/hash.rb
Constant Summary
Constants included from Logging
Logging::DEFAULT_LOG_LEVEL, Logging::LOG_LEVELS
Instance Attribute Summary
Attributes inherited from Literal
Attributes inherited from Link
Instance Method Summary collapse
-
#initialize(type, node, splatted = false) ⇒ Hash
constructor
A new instance of Hash.
- #resolve(api_map, name_pin, locals) ⇒ Object
- #splatted? ⇒ Boolean
- #word ⇒ Object
Methods inherited from Link
#clone_body, #clone_head, #constant?, #desc, #head?, #inspect, #nullable?, #to_s, #undefined?
Methods included from Logging
Methods included from Equality
Constructor Details
#initialize(type, node, splatted = false) ⇒ Hash
Returns a new instance of Hash.
10 11 12 13 |
# File 'lib/solargraph/source/chain/hash.rb', line 10 def initialize type, node, splatted = false super(type, node) @splatted = splatted end |
Instance Method Details
#resolve(api_map, name_pin, locals) ⇒ Object
24 25 26 |
# File 'lib/solargraph/source/chain/hash.rb', line 24 def resolve api_map, name_pin, locals [Pin::ProxyType.anonymous(@complex_type)] end |
#splatted? ⇒ Boolean
28 29 30 |
# File 'lib/solargraph/source/chain/hash.rb', line 28 def splatted? @splatted end |
#word ⇒ Object
20 21 22 |
# File 'lib/solargraph/source/chain/hash.rb', line 20 def word @word ||= "<#{@type}>" end |