Created
February 3, 2009 05:11
-
-
Save jeremy/57324 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
$ 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