Class: Brevity::FileNode

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/brevity/parsing/file/file_node.rb

Instance Method Summary collapse

Instance Method Details

#command_nodesObject



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