G
Greg Hauptmann
Hi,
What's an easy way to compare for equality two object instances (that
haven't been saved yet). Or in other words pretty much just two
object instances. I've tried "==" and "eql?" on the objects directly
and this doesn't work.
How about: "m1.to_yaml.eql?(m2.to_yaml)" Is this the simplest way?
(i.e. leveraging the ability to serialize the object to a yaml string)
tks
What's an easy way to compare for equality two object instances (that
haven't been saved yet). Or in other words pretty much just two
object instances. I've tried "==" and "eql?" on the objects directly
and this doesn't work.
How about: "m1.to_yaml.eql?(m2.to_yaml)" Is this the simplest way?
(i.e. leveraging the ability to serialize the object to a yaml string)
tks