On Oct 23, 2005, at 9:37 AM, Boris Glawe wrote:

> Hello,
>
> I've an array filled with objects. These objects are instances of  
> my own classes.
>
> Which methods do I have to override in my classes that the array's  
> uniq, sort,... methods can successfully compare two of my objects?
>
> I've tried to override the == method and the <=> method, but it  
> didnt' work

#uniq works via a Hash, so you need #hash and #eql?

-- 
Eric Hodel - drbrain / segment7.net - http://segment7.net
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04