# Yaml

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

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [June 20, 2008, 12:33am UTC](https://www.ruby-forum.com/t/yaml/140945/1 "2008-06-20T00:33:28Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [June 20, 2008, 12:38am UTC](https://www.ruby-forum.com/t/yaml/140945/2 "2008-06-20T00:38:45Z")

</div>

YAML support currently does what it needs to do in order to run Rails.  
Beyond that, all bets are off â˜º.

Let the flow of bug reports commence!

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Ivan Porto  
Carrero  
Sent: Thursday, June 19, 2008 3:33 PM  
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)

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [June 20, 2008, 12:49am UTC](https://www.ruby-forum.com/t/yaml/140945/3 "2008-06-20T00:49:52Z")

</div>

You’ve asked for it 🙂  
I’ll be on IronRuby from now until sunday so I’ll probably be sending a  
couple more emails over the next couple of days 🙂

On Fri, Jun 20, 2008 at 10:37 AM, Curt H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
