Issue #5025 has been updated by Aaron Patterson.

Status changed from Open to Rejected

Hi,

Please use Psych rather than syck.  I don't think `parse` 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.
----------------------------------------
Bug #5025: YAML::Syck::Map#children returns [nil, nil]
http://redmine.ruby-lang.org/issues/5025

Author: Thomas Sawyer
Status: Rejected
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux] 


ruby-1.9.2-p0 > d = YAML.load('--- { a: 1, b: 2 }')
 => {"a"=>1, "b"=>2} 
ruby-1.9.2-p0 > d = YAML.parse('--- { a: 1, b: 2 }')
 => #<Syck::Map:0x00000001890840> 
ruby-1.9.2-p0 > d.children
 => [nil, nil] 



-- 
http://redmine.ruby-lang.org