Random Qu wrote:
> What's the best way of doing this?

Why don't you show us what you've done so far, whether or not it works, 
and then we can suggest whether there are improvements which can be 
made.

Regards,

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