The problem is in the "run" method: every time you call the "string" 
method in there,  you are basically resetting the @string instance 
variable to its starting value.

Maybe try experimenting with using the @string variable directly in the 
run method (instead of via the "string" method as you do currently) and 
you will have better results!

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