Class: CommandTree::Group
- Inherits:
-
Object
- Object
- CommandTree::Group
- Defined in:
- lib/command_tree/group.rb
Overview
A group of commands
Instance Attribute Summary collapse
-
#desc ⇒ Object
readonly
Returns the value of attribute desc.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(prefix, name, options = {}) ⇒ Group
constructor
A new instance of Group.
Constructor Details
#initialize(prefix, name, options = {}) ⇒ Group
Returns a new instance of Group.
6 7 8 9 10 |
# File 'lib/command_tree/group.rb', line 6 def initialize(prefix, name, = {}) @prefix = prefix @name = name @desc = [:desc] end |
Instance Attribute Details
#desc ⇒ Object (readonly)
Returns the value of attribute desc.
4 5 6 |
# File 'lib/command_tree/group.rb', line 4 def desc @desc end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/command_tree/group.rb', line 4 def name @name end |
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
4 5 6 |
# File 'lib/command_tree/group.rb', line 4 def prefix @prefix end |
Instance Method Details
#execute ⇒ Object
12 13 14 |
# File 'lib/command_tree/group.rb', line 12 def execute end |