From: MonkeeSage Date: 2007-11-24T20:40:00+09:00 Subject: Re: Hashes, Sets, and eql? On Nov 24, 1:25 am, Aaron Patterson wrote: > Nope. I don't want a shallow comparison. I need to use my sets as hash > keys, so I need .eql? and .hash. Set calls eql? on the internal hash object. And eql? implies a.hash == b.hash. That is an object comparison, since Object#hash gives a unique value for every object like Object#id. What you need is shallow comparison of values rather than objects: a == b. I'm not sure how to easily make Hash do that. Regards, Jordan