Class Mercenary::Presenter
In: lib/mercenary/presenter.rb
Parent: Object

Methods

Attributes

command  [RW] 

Public Class methods

Public: Make a new Presenter

command - a Mercenary::Command to present

Returns nothing

Public Instance methods

Public: Builds the command header, including the command identity and description

Returns the command header as a String

Public: Builds a string representation of the whole command

Returns the string representation of the whole command

Public: Turn a print_* into a *_presentation or freak out

meth - the method being called args - an array of arguments passed to the missing method block - the block passed to the missing method

Returns the value of whatever function is called

Public: Builds a string representation of the options

Returns the string representation of the options

Public: Builds a string representation of the options for parent commands

Returns the string representation of the options for parent commands

Public: Builds a string representation of the subcommands

Returns the string representation of the subcommands

Public: Builds a string representation of the command usage

Returns the string representation of the command usage

[Validate]