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