Class: Inspec::Resources::TomlConfig
- Inherits:
-
JsonConfig
- Object
- JsonConfig
- Inspec::Resources::TomlConfig
- Defined in:
- lib/inspec/resources/toml.rb
Instance Attribute Summary
Attributes inherited from JsonConfig
Instance Method Summary collapse
Methods inherited from JsonConfig
#initialize, #method_missing, #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
16 17 18 19 20 |
# File 'lib/inspec/resources/toml.rb', line 16 def parse(content) Tomlrb.parse(content) rescue => e raise Inspec::Exceptions::ResourceFailed, "Unable to parse TOML: #{e.}" end |