Class: Maccro::DSL::Hash
Instance Attribute Summary
Attributes inherited from Node
#first_column, #first_lineno, #last_column, #last_lineno, #name
Class Method Summary collapse
Instance Method Summary collapse
-
#type ⇒ Object
HASH may be a hash literal, or keyword argument assignment ‘“a: 1” of f(a: 1)` HASH(nd_alen == 0) is a keyword argument assignment, but no way to get it via AST::Node.
Methods inherited from Node
#capture, #children, #initialize, #match?, #to_code_range
Methods included from ASTNodeWrapper
#capture, #children, #match?, #to_code_range
Constructor Details
This class inherits a constructor from Maccro::DSL::Node
Class Method Details
.match?(node) ⇒ Boolean
118 |
# File 'lib/maccro/dsl/literal.rb', line 118 def self.match?(node); node.type == :HASH; end |
Instance Method Details
#type ⇒ Object
HASH may be a hash literal, or keyword argument assignment ‘“a: 1” of f(a: 1)` HASH(nd_alen == 0) is a keyword argument assignment, but no way to get it via AST::Node
117 |
# File 'lib/maccro/dsl/literal.rb', line 117 def type; :HASH; end |