Class: Heroku::Command::Help::HelpGroup
- Inherits:
-
Array
- Object
- Array
- Heroku::Command::Help::HelpGroup
- Defined in:
- lib/heroku/commands/help.rb
Instance Attribute Summary collapse
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
- #command(name, description) ⇒ Object
-
#initialize(title) ⇒ HelpGroup
constructor
A new instance of HelpGroup.
- #space ⇒ Object
Constructor Details
#initialize(title) ⇒ HelpGroup
Returns a new instance of HelpGroup.
6 7 8 |
# File 'lib/heroku/commands/help.rb', line 6 def initialize(title) @title = title end |
Instance Attribute Details
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/heroku/commands/help.rb', line 4 def title @title end |
Instance Method Details
#command(name, description) ⇒ Object
10 11 12 |
# File 'lib/heroku/commands/help.rb', line 10 def command(name, description) self << [name, description] end |
#space ⇒ Object
14 15 16 |
# File 'lib/heroku/commands/help.rb', line 14 def space self << ['', ''] end |