Class: Maccro::DSL::SpecialVariable
- Defined in:
- lib/maccro/dsl/value.rb
Constant Summary collapse
- SUB_TYPES =
[NthRefVariable, BackRefVariable].freeze
Instance Attribute Summary
Attributes inherited from Node
#first_column, #first_lineno, #last_column, #last_lineno, #name
Class Method Summary collapse
Instance Method Summary collapse
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
58 59 60 |
# File 'lib/maccro/dsl/value.rb', line 58 def self.match?(node) SUB_TYPES.any?{|s| s.match?(node) } end |
Instance Method Details
#type ⇒ Object
56 |
# File 'lib/maccro/dsl/value.rb', line 56 def type; :MACCRO_SPECIAL_VARIABLE; end |