Class: SyntaxTree::CLI::AST
Overview
An action of the CLI that prints out the AST for the given source.
Instance Attribute Summary
Attributes inherited from Action
Instance Method Summary collapse
Methods inherited from Action
#failure, #initialize, #success
Constructor Details
This class inherits a constructor from SyntaxTree::CLI::Action
Instance Method Details
#run(item) ⇒ Object
122 123 124 |
# File 'lib/syntax_tree/cli.rb', line 122 def run(item) pp item.handler.parse(item.source) end |