Class: Prompt::CommandGroup
- Inherits:
-
Object
- Object
- Prompt::CommandGroup
- Defined in:
- lib/prompt/command_group.rb
Instance Attribute Summary collapse
-
#commands ⇒ Object
readonly
Returns the value of attribute commands.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ CommandGroup
constructor
A new instance of CommandGroup.
Constructor Details
#initialize(name) ⇒ CommandGroup
Returns a new instance of CommandGroup.
6 7 8 9 |
# File 'lib/prompt/command_group.rb', line 6 def initialize name @name = name @commands = [] end |
Instance Attribute Details
#commands ⇒ Object (readonly)
Returns the value of attribute commands.
4 5 6 |
# File 'lib/prompt/command_group.rb', line 4 def commands @commands end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/prompt/command_group.rb', line 3 def name @name end |