Joel VanderWerf wrote:
> This creates two lines, but the scopes share the same binding for the
> local var "line", so the two blocks will both operate on the second
> line. Instead, use different var names, or use an #each loop.

Yeah, use of #each was required, since I was iterating through array and 
needed index of elements inside of handler.

Thank You.

-- 
Posted via http://www.ruby-forum.com/.