Class: Maccro::DSL::NthRefVariable

Inherits:
Node
  • Object
show all
Defined in:
lib/maccro/dsl/value.rb

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

Returns:

  • (Boolean)


44
# File 'lib/maccro/dsl/value.rb', line 44

def self.match?(node); node.type == :NTH_REF; end

Instance Method Details

#typeObject

$1, $2 (regexp group capture reference)



43
# File 'lib/maccro/dsl/value.rb', line 43

def type; :NTH_REF; end