From: Witold Rugowski Date: 2008-01-09T20:15:40+09:00 Subject: Re: Ruby/Tk - binding to canvas items 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/.