From: Eric Hodel Date: 2005-09-16T03:20:34+09:00 Subject: Re: hash and "==" On 15 Sep 2005, at 07:50, Brian Buckley wrote: > What is the difference between "eql?" and "==" in Ruby? #eql? is only used by Hash to determine if two keys (#hash) collide. Usually it just calls #==. if object1.hash == object2.hash and object1.eql? object2 then # both objects occupy the same slot in a Hash else # the objects occupy different slots in a Hash end -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04