Class: Prompt::CommandGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/prompt/command_group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandsObject (readonly)

Returns the value of attribute commands.



4
5
6
# File 'lib/prompt/command_group.rb', line 4

def commands
  @commands
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/prompt/command_group.rb', line 3

def name
  @name
end