From: Phillip Gawlowski Date: 2011-08-26T21:29:38+09:00 Subject: Re: overloading methods question please? On Fri, Aug 26, 2011 at 2:24 PM, Alexey Muranov wrote: > > Having multiple methods with the same name and choose one based on the > argument's class is not possible in Ruby. Not as inbuilt language feature, anyway. But with OO design, you can fake it, and dispatch method calls semi-transparently*. I'll leave the implementation of this Abomination of All That's Object Oriented to the reader, though. *"semi-transparent" since any implementation of such a thing _will_ blow up in your face, with hilarious results thanks to the lack of static typing. -- Phillip Gawlowski phgaw.posterous.com | twitter.com/phgaw | gplus.to/phgaw A method of solution is perfect if we can forsee from the start, and even prove, that following that method we shall attain our aim.               -- Leibniz