Module: EverydayThorUtil::SubCommandCommonHelpers
- Included in:
- SubCommandHelpers
- Defined in:
- lib/everyday_thor_util/plugin-helper.rb
Instance Method Summary collapse
Instance Method Details
#filter_list(list, parent, &extra) ⇒ Object
57 58 59 |
# File 'lib/everyday_thor_util/plugin-helper.rb', line 57 def filter_list(list, parent, &extra) list.select { |v| v[:options][:parent] == parent || (extra && extra.call(v)) } end |