Class: Taketo::Actions::View
- Inherits:
-
BaseAction
- Object
- BaseAction
- Taketo::Actions::View
- Defined in:
- lib/taketo/actions/view.rb
Instance Attribute Summary
Attributes inherited from BaseAction
Instance Method Summary collapse
Methods inherited from BaseAction
Constructor Details
This class inherits a constructor from Taketo::Actions::BaseAction
Instance Method Details
#run ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/taketo/actions/view.rb', line 10 def run config.default_destination = nil node = NodeResolver.new(config, destination_path).resolve traverser = ConfigTraverser.new(node) config_printer = ConfigPrinterVisitor.new traverser.visit_depth_first(config_printer) puts config_printer.result end |