Class: Inspec::Resources::IniConfig

Inherits:
JsonConfig show all
Defined in:
lib/resources/ini.rb

Instance Attribute Summary

Attributes inherited from JsonConfig

#params

Instance Method Summary collapse

Methods inherited from JsonConfig

#initialize, #method_missing, #value

Methods included from ObjectTraverser

#extract_value

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



17
18
19
# File 'lib/resources/ini.rb', line 17

def parse(content)
  SimpleConfig.new(content).params
end

#to_sObject



21
22
23
# File 'lib/resources/ini.rb', line 21

def to_s
  "INI #{@path}"
end