Hi,
  Does the Ruby '==' operator compares the 'object_ids' of the element before
descending into comparing the elements? 

I know about the equal? method, but I want something like following to be
compared, and am worried about efficiency.
  [x y z] and [x y z]

the arrays may be different objects, but the elements will be the same object.

Thanks.
-- 
Surendra Singhi
http://ssinghi.kreeti.com, http://www.kreeti.com
Read my blog at: http://cuttingtheredtape.blogspot.com/
,----
| Great wits are sure to madness near allied,
| And thin partitions do their bounds divide.
| 
|     (John Dryden, Absalom and Achitophel, 1681)
`----