From: Daniel N Date: 2006-11-23T13:20:24+09:00 Subject: Re: Compare Array Values? ------=_Part_46335_16674838.1164255618748 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 11/23/06, El Gato wrote: > > > > Of course this would be much simpler if we were redefining Array#== > > with this algorythm (there would be no need to check #kind_of?) but I > > really DON'T want to know what could happen by redefining Array#==, > > since every library could rely on it :P > > (Actually, it might be funny to find out) > > > > So... err... can the Array contain Hashes or other Objects as well??? > This could get pretty tough, eh? > > [1,4,nil,{:foo => 1, :bar =>2},customKlass,2] I guess it could, but for my purposes it will contain either strings or active_records or possibly a mix of either. ------=_Part_46335_16674838.1164255618748--