https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112011-07-14T01:30:19ZRuby Issue Tracking SystemRuby master - Bug #5025: YAML::Syck::Map#children returns [nil, nil]https://redmine.ruby-lang.org/issues/5025?journal_id=191452011-07-14T01:30:19Ztrans (Thomas Sawyer)
<ul></ul><p>Try that again:</p>
<pre> d = YAML.parse('--- { a: 1, b: 2 }')
=> #<Syck::Map:0x00000001890840>
ruby-1.9.2-p0 > d.children
=> [nil, nil]
</pre> Ruby master - Bug #5025: YAML::Syck::Map#children returns [nil, nil]https://redmine.ruby-lang.org/issues/5025?journal_id=193512011-07-20T09:20:31Ztenderlovemaking (Aaron Patterson)tenderlove@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Rejected</i></li></ul><p>Hi,</p>
<p>Please use Psych rather than syck. I don't think <code>parse</code> was meant to be public API in Syck, but I do consider it to be public API in Psych. The only problem is that the method exposes the parse tree for the YAML document. There isn't a way I can make the parse tree backwards compatible, and there were no tests for the parse tree in the first place.</p>