Parent

Class/Module Index [+]

Quicksearch

RHC::HelpFormatter

Public Instance Methods

render() click to toggle source
# File lib/rhc/help_formatter.rb, line 8
def render
  template(:help).result RunnerHelpBindings.new(@runner).get_binding
end
render_command_syntax(command) click to toggle source
# 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) click to toggle source
# File lib/rhc/help_formatter.rb, line 14
def render_options runner
  template(:options_help).result RunnerHelpBindings.new(runner).get_binding
end
template(name) click to toggle source
# File lib/rhc/help_formatter.rb, line 5
def template(name)
  ERB.new(File.read(File.join(File.dirname(__FILE__), 'usage_templates', "#{name}.erb")), nil, '-')
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.