Commander::HelpFormatter::Terminal

Public Instance Methods

render() click to toggle source
# File lib/commander/help_formatters/terminal.rb, line 7
def render
  template(:help).result @runner.get_binding
end
render_command(command) click to toggle source
# File lib/commander/help_formatters/terminal.rb, line 11
def render_command command
  template(:command_help).result command.get_binding
end
template(name) click to toggle source
# File lib/commander/help_formatters/terminal.rb, line 15
def template name
  ERB.new(File.read(File.join(File.dirname(__FILE__), 'terminal', "#{name}.erb")), nil, '-')
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.