From: Austin Ziegler Date: 2004-09-18T00:15:53+09:00 Subject: Re: Automatic class conversion / function overloading On Fri, 17 Sep 2004 22:44:46 +0900, Tore Halvorsen wrote: > I agree, but when trying to make a class for rational numbers, I > wanted to be able to multiply both rational and fixnums to it. 1) There is a Rational class in Ruby already. 2) Look at #coerce (I believe it's either Fixnum#coerce or Numeric#coerce). This will allow you to coerce numbers into different forms. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca : as of this email, I have [ 6 ] Gmail invitations