G
George Moschovitis
Hello all,
I have a yaml file that I parse like this
yaml =3D 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
method 'lookup':
yaml.lookup['title'] # =3D> 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,
-g.
I have a yaml file that I parse like this
yaml =3D 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
method 'lookup':
yaml.lookup['title'] # =3D> 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,
-g.