From: Dick Davies Date: 2006-09-05T05:23:25+09:00 Subject: Re: times is a method? On 04/09/06, dblack@wobblini.net wrote: > Hi -- > > On Tue, 5 Sep 2006, Dick Davies wrote: > > so why does > > > > Integer.methods.include? 'times' > > > > return false ? > > methods returns the methods that the object (in this case, the class > object Integer) responds to. > > If you do: > > 3.methods.include?("times") > > you'll get true. Thanks all - finally got the difference between Integer#times and Integer.times - it's only taken me three years :D -- Rasputin :: Jack of All Trades - Master of Nuns http://number9.hellooperator.net/