Class: Commander::HelpFormatter::Base
- Defined in:
- lib/commander/help_formatters/base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(runner) ⇒ Base
constructor
A new instance of Base.
- #render ⇒ Object
- #render_command(command) ⇒ Object
Constructor Details
#initialize(runner) ⇒ Base
12 13 14 |
# File 'lib/commander/help_formatters/base.rb', line 12 def initialize(runner) @runner = runner end |
Instance Method Details
#render ⇒ Object
16 17 18 |
# File 'lib/commander/help_formatters/base.rb', line 16 def render 'Implement global help here' end |
#render_command(command) ⇒ Object
20 21 22 |
# File 'lib/commander/help_formatters/base.rb', line 20 def render_command(command) "Implement help for #{command.name} here" end |