From: Joel VanderWerf Date: 2008-08-24T09:24:59+09:00 Subject: Re: YAML::load help Jayson Williams wrote: > That helped. The problem a result of how I was adding the Struct value > to the hash. I was trying to condence everything into one line like > this > > s={'key'=>Struct.new(:x,:y).new(1,2)} > > Looks like YAML could not recognize this as a struct for some reason. irb(main):008:0> Struct.new(:x,:y) == Struct.new(:x,:y) => false So, it's understandable that creating the Struct class inline would lead to confusion... -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407