Class: Configuration::Group

Inherits:
Object
  • Object
show all
Defined in:
lib/configuration/group_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Group

Returns a new instance of Group.



9
10
11
# File 'lib/configuration/group_config.rb', line 9

def initialize(name)
  @config_group_hash = {:group_name => name, :variables => []}
end

Instance Attribute Details

#config_group_hashObject (readonly)

Returns the value of attribute config_group_hash.



7
8
9
# File 'lib/configuration/group_config.rb', line 7

def config_group_hash
  @config_group_hash
end

Instance Method Details

#group_hashObject



17
18
19
# File 'lib/configuration/group_config.rb', line 17

def group_hash
  config_group_hash
end

#set(key, value) ⇒ Object



13
14
15
# File 'lib/configuration/group_config.rb', line 13

def set(key, value)
  @config_group_hash[:variables].push( {key => value} )
end