From: Robert Klemme Date: 2005-10-24T03:57:12+09:00 Subject: Re: which method do I have to override? Ryan Leavengood wrote: > On 10/23/05, 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 > > Hi Boris, > > For sort you just need to override <=>, for uniq to need to override > hash= .... and #eql? robert