Class: Lingohub::Command::Help::HelpGroup
- Inherits:
-
Array
- Object
- Array
- Lingohub::Command::Help::HelpGroup
- Defined in:
- lib/lingohub/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.
9 10 11 |
# File 'lib/lingohub/commands/help.rb', line 9 def initialize(title) @title = title end |
Instance Attribute Details
#title ⇒ Object (readonly)
Returns the value of attribute title.
7 8 9 |
# File 'lib/lingohub/commands/help.rb', line 7 def title @title end |
Instance Method Details
#command(name, description) ⇒ Object
13 14 15 |
# File 'lib/lingohub/commands/help.rb', line 13 def command(name, description) self << [name, description] end |
#space ⇒ Object
17 18 19 |
# File 'lib/lingohub/commands/help.rb', line 17 def space self << ['', ''] end |