Module: PagerJudy::CLI::CollectionBehaviour::DataSubcommand
- Includes:
- DataDisplay
- Defined in:
- lib/pager_judy/cli/collection_behaviour.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from DataDisplay
Class Method Details
.included(target) ⇒ Object
36 37 38 |
# File 'lib/pager_judy/cli/collection_behaviour.rb', line 36 def self.included(target) target.parameter "[EXPR]", "JMESPath expression" end |
Instance Method Details
#execute ⇒ Object
40 41 42 |
# File 'lib/pager_judy/cli/collection_behaviour.rb', line 40 def execute puts display_data(collection.to_a, expr) end |