Class: Heroku::Deprecated::Help::HelpGroup

Inherits:
Array
  • Object
show all
Defined in:
lib/heroku/deprecated/help.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title) ⇒ HelpGroup

Returns a new instance of HelpGroup.



11
12
13
# File 'lib/heroku/deprecated/help.rb', line 11

def initialize(title)
  @title = title
end

Instance Attribute Details

#titleObject (readonly)

Returns the value of attribute title.



9
10
11
# File 'lib/heroku/deprecated/help.rb', line 9

def title
  @title
end

Instance Method Details

#command(name, description) ⇒ Object



15
16
17
# File 'lib/heroku/deprecated/help.rb', line 15

def command(name, description)
  self << [name, description]
end

#spaceObject



19
20
21
# File 'lib/heroku/deprecated/help.rb', line 19

def space
  self << ['', '']
end