On Wed, Feb 11, 2009 at 12:29 AM, Iki Baz Castillo <ibc / aliax.net> wrote:
> 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
  => 5

It's puts'ing 0-4, and then returning 5.  To see this more clearly, try this:

  5.times {|i| puts "-- #{i}" }

Ben