Class: SyntaxTree::CLI::Format

Inherits:
Action
  • Object
show all
Defined in:
lib/syntax_tree/cli.rb

Overview

An action of the CLI that formats the input source and prints it out.

Instance Method Summary collapse

Methods inherited from Action

#failure, #success

Instance Method Details

#run(handler, _filepath, source) ⇒ Object



114
115
116
# File 'lib/syntax_tree/cli.rb', line 114

def run(handler, _filepath, source)
  puts handler.format(source)
end