Class: SyntaxTree::CLI::Match
Overview
An action of the CLI that outputs a pattern-matching Ruby expression that would match the input given.
Instance Method Summary collapse
Methods inherited from Action
Instance Method Details
#run(item) ⇒ Object
168 169 170 |
# File 'lib/syntax_tree/cli.rb', line 168 def run(item) puts item.handler.parse(item.source).construct_keys end |