From: Greg Hauptmann Date: 2009-09-06T06:56:24+09:00 Subject: Re: how to compare two object instances? is "m1.to_yaml.eql?(m2.to_yaml)" a good way? 2009/9/5 Robert Klemme : > If you need to convert your objects anyway, then you could also use Arrays, > e.g. > > a, b = [x,y].map {|o| [o.foo, o.bar, o.baz]} > > puts( a == b ) Thanks Robert - this looks like a good way to go then.