# Re: YAML

**URL:** <https://www.ruby-forum.com/t/re-yaml/140949>\
**Category:** IronRuby\
**Created:** [June 20, 2008, 12:59am UTC](https://www.ruby-forum.com/t/re-yaml/140949 "2008-06-20T00:59:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oleg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/ebca7d/32.png) [@oleg](https://www.ruby-forum.com/u/oleg)\
**Post date:** [June 20, 2008, 12:59am UTC](https://www.ruby-forum.com/t/re-yaml/140949/1 "2008-06-20T00:59:51Z")

</div>

I’m currently working on improving yaml implementation. It will be  
better in next build.  
One problem you can see in your test is that current implementation  
doesn’t support loading symbols. That’s because our implementation is a  
port of early version of JvYAML, which in turn was based on RbYAML,  
which in turn was based on PyYAML and Python doesn’t have symbols.

I’m working on a fix.–  
Oleg

* * *

From: “Ivan Porto C.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: Thursday, June 19, 2008 10:34 AM  
To: removed\_email\_address@domain.invalid  
Subject: [Ironruby-core] YAML

Hi

Is yaml supposed to be working atm because when I try it, it definitely  
does some weird things. When I run the tests there is one test that  
fails the yamlorg\_refcard.yml.

And this is my test.

> > > require ‘yaml’  
> > > =\> true  
> > > $t = {:one =\> “one val”, :two =\> { :nested\_first =\> “nested val” } }  
> > > =\> {:one=\>“one val”, :two=\>{:nested\_first=\>“nested val”}}  
> > > $y = YAML::dump $t  
> > > =\> “\n— !ruby/object:Hash\n!ruby/object:Symbol 1️⃣  
> > > !ruby/object:String one val\n!ruby/object:Symbol 2️⃣ !ruby/obje  
> > > ct:Hash\n !ruby/object:Symbol :nested\_first: !ruby/object:String nested  
> > > val\n”  
> > > $r = YAML::load $y  
> > > =\> #Ruby::StandardLibrary::Yaml::PrivateType:0x000005c  
> > > $r == $t  
> > > =\> false  
> > > $r[:one]  
> > > :0:in `Initialize': undefined local variable or method `[]’ for  
> > > #Ruby::StandardLibrary::Yaml::PrivateType:0x000005c:Ru  
> > > by::StandardLibrary::Yaml::PrivateType (NoMethodError)
