From: Rong Date: 2008-09-08T15:11:34+09:00 Subject: Re: Newb question But why is it incrementing? On Sep 8, 1:00 am, Dave Thomas wrote: > 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