Class: Trope::Node
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Trope::Node
- Defined in:
- lib/trope/node.rb
Overview
The base syntax node.
Direct Known Subclasses
Language::AttributeKeyword, Language::Body, Language::Constant, Language::EndKeyword, Language::Literal, Language::ObjectKeyword
Instance Method Summary collapse
Instance Method Details
#elements ⇒ <Trope::Node>
11 12 13 |
# File 'lib/trope/node.rb', line 11 def elements elements_with_treetop_nodes.find_all { |node| node.is_a?(Trope::Node) } end |
#elements_with_treetop_nodes ⇒ Object
8 |
# File 'lib/trope/node.rb', line 8 alias_method :elements_with_treetop_nodes, :elements |