Class: Inspec::Resources::TomlConfig

Inherits:
JsonConfig show all
Defined in:
lib/resources/toml.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



18
19
20
# File 'lib/resources/toml.rb', line 18

def parse(content)
  TOML::Parser.new(content).parsed
end

#to_sObject



22
23
24
# File 'lib/resources/toml.rb', line 22

def to_s
  "TOML #{@path}"
end