Rudimentary YAML parsing function

Expects ruby 1.9, or ruby 1.8 with yaml gem installed.