Class: Configuration::Group
- Inherits:
-
Object
- Object
- Configuration::Group
- Defined in:
- lib/configuration/group_config.rb
Instance Attribute Summary collapse
-
#config_group_hash ⇒ Object
readonly
Returns the value of attribute config_group_hash.
Instance Method Summary collapse
- #group_hash ⇒ Object
-
#initialize(name) ⇒ Group
constructor
A new instance of Group.
- #set(key, value) ⇒ Object
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_hash ⇒ Object (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_hash ⇒ Object
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 |