Class: SyntaxTree::CLI::Format
Overview
An action of the CLI that formats the input source and prints it out.
Instance Method Summary collapse
Methods inherited from Action
Instance Method Details
#run(filepath, source) ⇒ Object
110 111 112 |
# File 'lib/syntax_tree/cli.rb', line 110 def run(filepath, source) puts SyntaxTree.format(source) end |