From: Hans Mackowiak Date: 2013-03-11T19:12:57+09:00 Subject: Re: Confusion with block local variable declaration with block variable declaration within the pipe because this variables are reseted back to nil, every time the block is run, and an "init" would not make sense in you want something that survive longer than one iteration look at each_with_object / with_object or inject and before you can ask: this parameters are NOT useless because they can shadow other local variables from outside the block without overriding them -- Posted via http://www.ruby-forum.com/.