Andreas S wrote:
> I often found my self retyping a lot of lines when experimenting or 
> testing in irb after making some changes.

So why not just never use irb?   Instead, open up vim to my_tests.rb and 
write all the practice code you want.  It will still be there after you 
run the program.
-- 
Posted via http://www.ruby-forum.com/.