Class: RHC::HelpFormatter
- Inherits:
-
Commander::HelpFormatter::Terminal
- Object
- Commander::HelpFormatter::Terminal
- RHC::HelpFormatter
- Defined in:
- lib/rhc/help_formatter.rb
Instance Method Summary collapse
- #render ⇒ Object
- #render_command_syntax(command) ⇒ Object
- #render_options(runner) ⇒ Object
- #template(name) ⇒ Object
Instance Method Details
#render ⇒ Object
8 9 10 |
# File 'lib/rhc/help_formatter.rb', line 8 def render template(:help).result RunnerHelpBindings.new(@runner).get_binding end |
#render_command_syntax(command) ⇒ Object
11 12 13 |
# File 'lib/rhc/help_formatter.rb', line 11 def render_command_syntax command template(:command_syntax_help).result command.get_binding end |
#render_options(runner) ⇒ Object
14 15 16 |
# File 'lib/rhc/help_formatter.rb', line 14 def runner template(:options_help).result RunnerHelpBindings.new(runner).get_binding end |