| Class | ParseConfig |
| In: |
lib/parseconfig.rb
|
| Parent: | Object |
Note: A group is a set of parameters defined for a subpart of a config file
| Version | = | '1.0.8' |
| config_file | [RW] | |
| groups | [RW] | |
| params | [RW] |
Initialize the class with the path to the ‘config_file’ The class objects are dynamically generated by the name of the ‘param’ in the config file. Therefore, if the config file is ‘param = value’ then the itializer will eval "@param = value"
This method adds an element to the config object (not the config file) By adding a Hash, you create a new group
Add parameters to a group. Note that parameters with the same name could be placed in different groups
Public: Compare this ParseConfig to some other ParseConfig. For two config to be equivalent, they must have the same sections with the same parameters
other - The other ParseConfig.
Returns true if ParseConfig are equivalent and false if they differ.