Thanks to everybody, I solved this issue using the solution of the 
command line arg because I think is the one that need less resources and 
I don't need to the information to be persistent

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