class RHC::HelpFormatter

Public Instance Methods

render_command_syntax(command) click to toggle source
# File lib/rhc/help_formatter.rb, line 8
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 11
def render_options runner
  template(:options_help).result 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