Objects with custom to_yaml methods break collection to_yaml
------------------------------------------------------------

                 Key: JRUBY-3365
                 URL: http://jira.codehaus.org/browse/JRUBY-3365
             Project: JRuby
          Issue Type: Bug
          Components: Extensions
    Affects Versions: JRuby 1.1.6
            Reporter: Charles Oliver Nutter
            Assignee: Ola Bini
             Fix For: JRuby 1.2


{noformat}
o = Object.new
def o.to_yaml(opts); 'hello'.to_yaml; end
[o].to_yaml
{:a => o}.to_yaml
{noformat}

Both of the last two lines cause this error: wrong argument type String 
(expected YAML::JvYAML::Node) (TypeError)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to