Skip to content

Instantly share code, notes, and snippets.

@rwjblue
Created September 25, 2013 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rwjblue/6700004 to your computer and use it in GitHub Desktop.
Save rwjblue/6700004 to your computer and use it in GitHub Desktop.
YAML converts `on` and `off` to true and false. WTF?
s=<<-EOS
something: 'blah blah'
foo: 'bar'
on: 'WTF? true?'
off: "I don't even"
EOS
puts YAML.load(s)
#=> {"something"=>"blah blah", "foo"=>"bar", true=>"WTF? true?", false=>"I don't even"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment