Skip to content

Instantly share code, notes, and snippets.

@akiellor
Created October 16, 2012 04:42
Show Gist options
  • Save akiellor/3897262 to your computer and use it in GitHub Desktop.
Save akiellor/3897262 to your computer and use it in GitHub Desktop.
YAML.add_builtin_type('yes_no') {|type, value| value == 'Y'}
YAML.load("blah: !yes_no 'Y'") == {'blah' => true}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment