Class: SyntaxTree::CLI::Match
Overview
An action of the CLI that outputs a pattern-matching Ruby expression that would match the input given.
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
336 337 338 |
# File 'lib/syntax_tree/cli.rb', line 336 def run(item) puts item.handler.parse(item.source).construct_keys end |