Class Commander::HelpFormatter::Terminal
In: lib/commander/help_formatters/terminal.rb
lib/commander/help_formatters/terminal.rb
Parent: Base

Methods

Public Instance methods

[Source]

   # File lib/commander/help_formatters/terminal.rb, line 7
7:       def render
8:         template(:help).result @runner.get_binding
9:       end

[Source]

   # File lib/commander/help_formatters/terminal.rb, line 7
7:       def render
8:         template(:help).result @runner.get_binding
9:       end

[Source]

    # File lib/commander/help_formatters/terminal.rb, line 11
11:       def render_command command
12:         template(:command_help).result command.get_binding
13:       end

[Source]

    # File lib/commander/help_formatters/terminal.rb, line 11
11:       def render_command command
12:         template(:command_help).result command.get_binding
13:       end

[Source]

    # File lib/commander/help_formatters/terminal.rb, line 15
15:       def template name
16:         ERB.new(File.read(File.join(File.dirname(__FILE__), 'terminal', "#{name}.erb")), nil, '-')
17:       end

[Source]

    # File lib/commander/help_formatters/terminal.rb, line 15
15:       def template name
16:         ERB.new(File.read(File.join(File.dirname(__FILE__), 'terminal', "#{name}.erb")), nil, '-')
17:       end

[Validate]