Ron Green wrote:
> Why does this
> 
> p 3.times {|i| puts i}
> 
> produce
> 
> 0
> 1
> 2
> 3
> 
> ?????

I think that a way to see what they are saying more clearly is thus:

ar = Array.new
3.times {|i| ar << i}
p ar

=> [0, 1, 2]

It does things as expected but internally to the block it has that last 
bit.

I hope that helps.
-- 
Posted via http://www.ruby-forum.com/.