Created
August 27, 2013 19:10
-
-
Save anonymous/6357734 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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