Ben Bleything
2/11/2009 8:32:00 AM
On Wed, Feb 11, 2009 at 12:29 AM, I=F1aki Baz Castillo <ibc@aliax.net> wrot=
e:
> irb> 5.times {|i| puts i}
> 0
> 1
> 2
> 3
> 4
> 5
I think you may have clipped some of the output. Here's what I get:
irb(main):005:0> 5.times {|i| puts i}
0
1
2
3
4
=3D> 5
It's puts'ing 0-4, and then returning 5. To see this more clearly, try thi=
s:
5.times {|i| puts "-- #{i}" }
Ben