From: Nick Bhanji Date: 2008-11-08T00:28:06+09:00 Subject: Re: array.equal? Sebastian Hungerecker wrote: > Nick Bhanji wrote: >> Now my >> conclusion is that no to trust methods function -- because it does not >> do what it is supposed to do -- that is allow a programmer to know what >> methods are supported. > > Wtf? [].methods lists equal? because equal? is defined by Object and is > as > such available to be called on all objects including arrays. It is not > listed > in the docs of Array because it is defined by Object, not Array, and is > not > redefined by Array either. You can perfectly well call equal? on an > array and > it will behave like the docs for Object#equal? say it will. > > HTH, > Sebastian You gotta chill, I am trying to use a language -- not get anyone riled up.. smile and be happy -- Posted via http://www.ruby-forum.com/.