From: Konrad Meyer Date: 2007-10-10T09:49:07+09:00 Subject: Re: YAML to Struct --nextPart4994387.8vUXAUJMcX Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Quoth Andrew Hite: > Is it possible to take YAML and turn it into a Struct? I want to take > something that looks like this: >=20 > key_1: Value 1 > key_2: Value 2 >=20 > And turn it into an object with accessors...and I'm assuming a Struct > would be my best bet. I'm relatively new to the concepts of YAML and > the Struct class, so I'm banging my head against the wall trying to > figure this out. >=20 > Any ideas? Take a look at OpenStruct. =2D-=20 Konrad Meyer http://konrad.sobertillnoon.com/ --nextPart4994387.8vUXAUJMcX Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBHDCF9CHB0oCiR2cwRAoQiAKC8s82b1nLzU+LGAHjJqrToNWEOywCdEzTU xAZ0GrzbBc4ZlyPII4IHOU8= =cuJS -----END PGP SIGNATURE----- --nextPart4994387.8vUXAUJMcX--