Class: IniConfig
- Inherits:
-
JsonConfig
- Object
- JsonConfig
- IniConfig
- Defined in:
- lib/resources/ini.rb
Instance Attribute Summary
Attributes inherited from JsonConfig
Instance Method Summary collapse
-
#parse(content) ⇒ Object
override file load and parse hash with simple config.
- #to_s ⇒ Object
Methods inherited from JsonConfig
#initialize, #method_missing, #value
Constructor Details
This class inherits a constructor from JsonConfig
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class JsonConfig
Instance Method Details
#parse(content) ⇒ Object
override file load and parse hash with simple config
16 17 18 |
# File 'lib/resources/ini.rb', line 16 def parse(content) SimpleConfig.new(content).params end |
#to_s ⇒ Object
20 21 22 |
# File 'lib/resources/ini.rb', line 20 def to_s "INI #{@path}" end |