Class: Inspec::Resources::TomlConfig
- Inherits:
-
JsonConfig
- Object
- JsonConfig
- Inspec::Resources::TomlConfig
- Defined in:
- lib/resources/toml.rb
Instance Attribute Summary
Attributes inherited from JsonConfig
Instance Method Summary collapse
Methods inherited from JsonConfig
#initialize, #method_missing, #value
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
18 19 20 |
# File 'lib/resources/toml.rb', line 18 def parse(content) TOML::Parser.new(content).parsed end |
#to_s ⇒ Object
22 23 24 |
# File 'lib/resources/toml.rb', line 22 def to_s "TOML #{@path}" end |