Class: Treetop::Runtime::SyntaxNode
- Inherits:
-
Object
- Object
- Treetop::Runtime::SyntaxNode
- Includes:
- Harby::Concerns::Delegation
- Defined in:
- lib/harby/ext/syntax_node.rb
Instance Attribute Summary
Attributes included from Harby::Concerns::Delegation
Instance Method Summary collapse
Instance Method Details
#elements(*args) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/harby/ext/syntax_node.rb', line 7 def elements(*args) elements = elements_without_reference(*args) || [] @comprehensive_elements = elements.map do |element| element.delegate = delegate element end end |
#elements_without_reference ⇒ Object
5 |
# File 'lib/harby/ext/syntax_node.rb', line 5 alias_method :elements_without_reference, :elements |