From: Fransiscus Xaverius Date: 2007-12-15T06:17:06+09:00 Subject: Re: YAML Problem YAML::Object You just saved my life from fired. Thank You. :D FX yermej wrote: > On Dec 14, 11:38 am, Fransiscus Xaverius > wrote: >> >> >> 12:30:19", "city"=>"Alex City", "line1"=>"441 Saint Bernard Drive", >> -- >> Posted viahttp://www.ruby-forum.com/. > > It should work so long as the environment where you load the YAML has > the correct definition of the Address class. In your first example > (where it isn't working right), you should be able to add something > before your YAML.load like: > > require 'address' > > where the file address.rb has the class definition of Address. Without > that, Ruby can't actually instantiate the Address class so you just > get the YAML::Object object that you're seeing. -- Posted via http://www.ruby-forum.com/.