would be better if you read the book
http://www.ruby-doc.org/docs/ProgrammingRuby/

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