input = gets.chomp
this line pauses code
i need as in your example, but without pause, without stop code.

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