Jeremy Tregunna <jtregunna / blurgle.ca> writes: > On 06-08-26, at 03:33, Surendra Singhi wrote: > >> Hi, >> Does the Ruby '==' operator compares the 'object_ids' of the >> element before >> descending into comparing the elements? > > Depends on how the object receiving it implements it. > And how does hashes, and arrays implement it? Thanks, -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at: http://cuttingtheredtape.blogspot.com/ ,---- | "O thou my friend! The prosperity of Crime is like unto the lightning, | whose traitorous brilliancies embellish the atmosphere but for an | instant, in order to hurl into death's very depths the luckless one | they have dazzled." -- Marquis de Sade `----