Class: YamlConfig
- Inherits:
-
JsonConfig
- Object
- JsonConfig
- YamlConfig
- Defined in:
- lib/resources/yaml.rb
Overview
Parses a yaml document Usage: describe yaml(‘.kitchen.yaml’) do
its('driver.name') { should eq('vagrant') }
end
Instance Attribute Summary
Attributes inherited from JsonConfig
Instance Method Summary collapse
-
#parse(content) ⇒ Object
override file load and parse hash from yaml.
- #to_s ⇒ Object
Methods inherited from JsonConfig
#extract_value, #initialize, #method_missing
Constructor Details
This class inherits a constructor from JsonConfig
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class JsonConfig
Instance Method Details
#parse(content) ⇒ Object
override file load and parse hash from yaml
16 17 18 |
# File 'lib/resources/yaml.rb', line 16 def parse(content) YAML.load(content) end |
#to_s ⇒ Object
20 21 22 |
# File 'lib/resources/yaml.rb', line 20 def to_s "YAML #{@path}" end |