Class: DrJekyll::ListCommand
- Inherits:
-
Object
- Object
- DrJekyll::ListCommand
- Defined in:
- lib/drjekyll/cli/list.rb
Overview
find a better name ??
Instance Method Summary collapse
-
#initialize(catalog, opts) ⇒ ListCommand
constructor
A new instance of ListCommand.
- #list(filter = nil) ⇒ Object
- #run(args) ⇒ Object
Constructor Details
#initialize(catalog, opts) ⇒ ListCommand
Returns a new instance of ListCommand.
8 9 10 11 |
# File 'lib/drjekyll/cli/list.rb', line 8 def initialize( catalog, opts ) @catalog = catalog @opts = opts end |
Instance Method Details
#list(filter = nil) ⇒ Object
18 19 20 |
# File 'lib/drjekyll/cli/list.rb', line 18 def list( filter=nil ) @catalog.list( filter ) end |
#run(args) ⇒ Object
13 14 15 16 |
# File 'lib/drjekyll/cli/list.rb', line 13 def run( args ) filter = args[0] ## optional filter (search query) list( filter ) end |