Class: Maccro::DSL::Array
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
ARRAY and ZARRAY.
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
109 110 111 |
# File 'lib/maccro/dsl/literal.rb', line 109 def self.match?(node) node.type == :ARRAY || node.type == :ZARRAY end |
Instance Method Details
#type ⇒ Object
ARRAY and ZARRAY
108 |
# File 'lib/maccro/dsl/literal.rb', line 108 def type; :MACCRO_ARRAY; end |