From: "Stephan J. Schmidt" Date: 2002-05-31T23:07:23+09:00 Subject: Re: Array Uniq Hi, this didn't work, any idea what I do wrong ? def hash @oid end def eql?(other) @oid.eql?(other.oid) end bye -stephan > >>>>> "S" == Stephan J Schmidt writes: > > S> what method does array.uniq use to compare to objects ? Which method > > Array#uniq first make an Hash > > S> do I have to override in my objects to tell Ruby they are the same ? > > #eql? and #hash > > These are the methods used to compare whether two keys are same > > > Guy Decoux > > > > > >