Have you read this article at IBM developerWork? http://www-4.ibm.com/software/developer/library/ruby.html