Class: Inspec::Resources::IniConfig
- Inherits:
-
JsonConfig
- Object
- JsonConfig
- Inspec::Resources::IniConfig
- Defined in:
- lib/inspec/resources/ini.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from JsonConfig
Instance Method Summary collapse
-
#parse(content) ⇒ Object
override file load and parse hash with simple config.
Methods inherited from JsonConfig
#initialize, #method_missing, #resource_id, #to_s, #value
Methods included from FileReader
Methods included from ObjectTraverser
Constructor Details
This class inherits a constructor from Inspec::Resources::JsonConfig
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Inspec::Resources::JsonConfig
Instance Method Details
#parse(content) ⇒ Object
override file load and parse hash with simple config
15 16 17 |
# File 'lib/inspec/resources/ini.rb', line 15 def parse(content) SimpleConfig.new(content).params end |