From: Dave Thomas Date: 2008-09-08T15:00:35+09:00 Subject: Re: Newb question On Sep 8, 2008, at 12:53 AM, Rong wrote: > p 3.times {|i| puts i} > > produce > > 0 > 1 > 2 > 3 The loop outputs 0, 1, and 2. The 'p' outputs the value of the entire statement. The times method returns the value of its receiver, which is 3 in this case. Regards Dave