Class: Commander::HelpFormatter::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/commander/help_formatters/base.rb

Direct Known Subclasses

Terminal

Instance Method Summary collapse

Constructor Details

#initialize(runner) ⇒ Base

Returns a new instance of Base.


13
14
15
# File 'lib/commander/help_formatters/base.rb', line 13

def initialize(runner)
  @runner = runner
end

Instance Method Details

#renderObject


17
18
19
# File 'lib/commander/help_formatters/base.rb', line 17

def render
  'Implement global help here'
end

#render_command(command) ⇒ Object


21
22
23
# File 'lib/commander/help_formatters/base.rb', line 21

def render_command(command)
  "Implement help for #{command.name} here"
end