Class: Brevity::CommandNode
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Brevity::CommandNode
- Defined in:
- lib/brevity/parsing/file/command_node.rb
Instance Method Summary collapse
Instance Method Details
#args ⇒ Object
7 8 9 |
# File 'lib/brevity/parsing/file/command_node.rb', line 7 def args braced_args.elements.map {|el| el.text.text_value } end |
#name ⇒ Object
3 4 5 |
# File 'lib/brevity/parsing/file/command_node.rb', line 3 def name cmd_name.text_value end |