Class: Brevity::FileNode
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Brevity::FileNode
- Defined in:
- lib/brevity/parsing/file/file_node.rb
Instance Method Summary collapse
Instance Method Details
#command_nodes ⇒ Object
3 4 5 |
# File 'lib/brevity/parsing/file/file_node.rb', line 3 def command_nodes nodes.elements.select {|el| el.node.is_a? CommandNode }.map {|el| el.node } end |