Class: Klipbook::Commands::Command
- Inherits:
-
Object
- Object
- Klipbook::Commands::Command
- Defined in:
- lib/klipbook/commands/command.rb
Instance Method Summary collapse
-
#initialize(logger = Logger.new) ⇒ Command
constructor
A new instance of Command.
- #run!(options) ⇒ Object
- #run_command! ⇒ Object
Constructor Details
#initialize(logger = Logger.new) ⇒ Command
Returns a new instance of Command.
4 5 6 |
# File 'lib/klipbook/commands/command.rb', line 4 def initialize(logger=Logger.new) @logger = logger end |
Instance Method Details
#run!(options) ⇒ Object
8 9 10 |
# File 'lib/klipbook/commands/command.rb', line 8 def run!() run_command!(book_source(), ) end |
#run_command! ⇒ Object
12 13 14 |
# File 'lib/klipbook/commands/command.rb', line 12 def run_command! raise "Implement me" end |