Skip to content

Instantly share code, notes, and snippets.

Created August 27, 2013 19:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6357734 to your computer and use it in GitHub Desktop.
Save anonymous/6357734 to your computer and use it in GitHub Desktop.
require 'yaml'
yaml = DATA.read
YAML::ENGINE.yamler = 'psych'
puts YAML.load(yaml)
YAML::ENGINE.yamler = 'syck'
puts YAML.load(yaml)
__END__
---
foo: false
nested: &bar
foo: true
<< : [*bar]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment