I have a yaml file that I parse like this
yaml = YAML.parse(yaml_str)
the ‘yaml_str’ variable holds the serialized version of an Object.
Lets say this object hase 2 attributes, ‘title’ and ‘body’.
How can I access them from the ‘yaml’ variable. Ie I want an imaginary
yaml.lookup[‘title’] # => returns the title value.
I used to do this with a little hack in 1.8.2, this hack does not work
on 1.8.3, I am looking for a portable way to do this.
thanks in advance for any help,