Class: Dracula::CommandHelp
- Inherits:
-
Object
- Object
- Dracula::CommandHelp
- Defined in:
- lib/dracula/command_help.rb
Instance Method Summary collapse
-
#initialize(command) ⇒ CommandHelp
constructor
A new instance of CommandHelp.
- #show ⇒ Object
Constructor Details
#initialize(command) ⇒ CommandHelp
Returns a new instance of CommandHelp.
4 5 6 |
# File 'lib/dracula/command_help.rb', line 4 def initialize(command) @command = command end |
Instance Method Details
#show ⇒ Object
8 9 10 11 12 13 |
# File 'lib/dracula/command_help.rb', line 8 def show show_usage show_desc show_flags if @command.flags.any? show_long_desc if @command.long_desc end |