Skip to content

Instantly share code, notes, and snippets.

@jeremy
Created February 3, 2009 05:11
Show Gist options
  • Save jeremy/57324 to your computer and use it in GitHub Desktop.
Save jeremy/57324 to your computer and use it in GitHub Desktop.
$ irb
>> class Foo; def to_yaml(options); 'abc'.to_yaml(options) end end
=> nil
>> { 'foo' => Foo.new }.to_yaml
=> "--- \nfoo: abc\n"
$ jirb
>> class Foo; def to_yaml(options); 'abc'.to_yaml(options) end end
=> nil
>> { 'foo' => Foo.new }.to_yaml
TypeError: wrong argument type String (expected YAML::JvYAML::Node)
from (irb):3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment