From: Nick Bhanji Date: 2008-11-07T23:54:23+09:00 Subject: Re: array.equal? Robert Klemme wrote: > 2008/11/7 Nick Bhanji : >> My questions: >> 1. why is equal? listed in the methods for the array >> 2. what is the definition of equal? in the case of array? >> 3. why is there another function eql? performing the actual equal test > > My questions: > > 1. What conclusions did you draw from your test results? > 2. What did the documentation say? > > robert Since I went through the documentation for the Array. equal? method does not exist. eql? does exist. Prior to this -- I used [1,1].methods and it listed the methods that are available for the object. 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. -- Posted via http://www.ruby-forum.com/.