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
190 191 192 |
# File 'lib/syntax_tree/cli.rb', line 190 def run(item) puts item.handler.parse(item.source).construct_keys end |