Class: Bookbinder::Commands::Help
- Inherits:
-
Object
- Object
- Bookbinder::Commands::Help
- Defined in:
- lib/bookbinder/commands/help.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(logger, usage_message) ⇒ Help
constructor
A new instance of Help.
- #run ⇒ Object
Constructor Details
#initialize(logger, usage_message) ⇒ Help
Returns a new instance of Help.
4 5 6 7 |
# File 'lib/bookbinder/commands/help.rb', line 4 def initialize(logger, ) @logger = logger = end |
Class Method Details
.command_name ⇒ Object
13 14 15 |
# File 'lib/bookbinder/commands/help.rb', line 13 def self.command_name '--help' end |
.to_s ⇒ Object
9 10 11 |
# File 'lib/bookbinder/commands/help.rb', line 9 def self.to_s 'help' end |
.usage ⇒ Object
17 18 19 |
# File 'lib/bookbinder/commands/help.rb', line 17 def self.usage "--help \t \t \t \t \t Print this message" end |
Instance Method Details
#run ⇒ Object
21 22 23 24 |
# File 'lib/bookbinder/commands/help.rb', line 21 def run(*) logger.log() 0 end |