Class: Ruth::Gemfile::Yaml
Overview
YAML suppoer for Ruth
Instance Attribute Summary collapse
-
#yaml ⇒ Object
Returns the value of attribute yaml.
Attributes inherited from Hash
Instance Method Summary collapse
-
#initialize(yaml) ⇒ Yaml
constructor
A new instance of Yaml.
Methods inherited from Hash
Constructor Details
#initialize(yaml) ⇒ Yaml
Returns a new instance of Yaml.
9 10 11 12 13 14 |
# File 'lib/ruth/yaml.rb', line 9 def initialize(yaml) super() @yaml = yaml @data = parse_yaml end |
Instance Attribute Details
#yaml ⇒ Object
Returns the value of attribute yaml.
7 8 9 |
# File 'lib/ruth/yaml.rb', line 7 def yaml @yaml end |