Josh Cheek wrote in post #1014269:
> On Mon, Aug 1, 2011 at 3:08 PM, Marc Chanliau
> <marc.chanliau / gmail.com>wrote:
>
>>
>> But I still get an error:
>> marcc$ ruby factorial7.rb
>> enter a positive integer: 4
>> factorial7.rb:11:in `<main>': undefined method `fact' for main:Object
>> (NoMethodError)
>>
>> thanks!
>>
>>
>
> I think it is admirable that so many people are willing to take the time
> and
> effort to help newbies. But I think in this case, the help he needs
> isn't
> for you to tell him what is wrong / why it is wrong, but to explain how
> you
> figured it out.
>

Josh, I really appreciate the explanation. I pasted it in my program (as
a comment) following the errors incurred in the original program.
I'm using an intro book to Ruby + the doc, so I'll get there eventually,
but I like your (more "didactic") approach!
Thanks.

-- 
Posted via http://www.ruby-forum.com/.