Class: Dracula::CommandHelp

Inherits:
Object
  • Object
show all
Defined in:
lib/dracula/command_help.rb

Instance Method Summary collapse

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

#showObject


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