From: Tom Allison Date: 2006-01-17T00:13:17+09:00 Subject: Re: basic question about Fixnum & Integer Gavin Kistner wrote: > On Jan 16, 2006, at 7:50 AM, Tom Allison wrote: > >> For some reason I can't get my installation of Ruby to do what the >> examples show: >> >> 6.lcm 7 >> NoMethodError: undefined method `lcm' for 6:Fixnum >> from (irb):17 >> from :0 >> >> 6.lcm(7) >> NoMethodError: undefined method `lcm' for 6:Fixnum >> from (irb):18 >> from :0 >> >> This is too simple to get wrong? > > > I had never seen the #lcm method before, but I see it on ruby-doc, and > I see it in my local ri, and it also doesn't really exist for me. Very > odd. Looks like for some reason the documentation is wrong. Oh thank God!!! I thought I was going clearly insane. If I am, at least I won't be alone...