Class: Commander::HelpFormatter::Terminal

### Home Classes Methods

### In Files

- lib/commander/help_formatters/terminal.rb

### Parent

Commander::HelpFormatter::Base

### Methods

- #render
- #render_command
- #template

### Class/Module Index

Quicksearch

- Commander
- Commander::Command
- Commander::Command::Options
- Commander::Delegates
- Commander::HelpFormatter
- Commander::HelpFormatter::Base
- Commander::HelpFormatter::Terminal
- Commander::HelpFormatter::TerminalCompact
- Commander::Platform
- Commander::Runner
- Commander::Runner::CommandError
- Commander::Runner::InvalidCommandError
- Commander::UI
- Commander::UI::AskForClass
- Commander::UI::ProgressBar
- Array
- Blank
- Object

No matching classes.

# 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.