Class: Figtree::IniConfig
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Figtree::IniConfig
- Defined in:
- lib/figtree/ini_config.rb
Instance Method Summary collapse
-
#initialize(ini, override = :none) ⇒ IniConfig
constructor
A new instance of IniConfig.
Constructor Details
#initialize(ini, override = :none) ⇒ IniConfig
Returns a new instance of IniConfig.
4 5 6 7 8 9 |
# File 'lib/figtree/ini_config.rb', line 4 def initialize(ini, override = :none) # cheat to allow a parsed hash in parsed_subgroups = ini.is_a?(Hash) ? ini : subgroups_from(ini, override) super(parsed_subgroups) end |