From: Logan Capaldo Date: 2006-09-05T03:49:12+09:00 Subject: Re: times is a method? On Sep 4, 2006, at 2:36 PM, Dick Davies wrote: > On 04/09/06, Troy Denkinger wrote: >> Perhaps I misunderstood the OP, but it looks like he's wanting to >> walk the >> inheritance tree looking for the method which defines the "times" >> method. >> It's actually in Integer. The "times" method is different than >> the "*" >> method, by the way. > > I think you understood him right, and you're correct according to ri, > so why does > > Integer.methods.include? 'times' > > return false ? > % irb --prompt simple >> Integer.times { puts "Whee" } NoMethodError: undefined method `times' for Integer:Class from (irb):1 This is not the droid you are looking for >> Integer.instance_methods.include? 'times' => true > > -- > Rasputin :: Jack of All Trades - Master of Nuns > http://number9.hellooperator.net/ >