Oh, I forgot the scope of local variable :(
Thank you very much for your explanation.
-- 
Posted via http://www.ruby-forum.com/.