From: Dave Thomas Date: 2001-05-08T04:42:05+09:00 Subject: [ruby-talk:14803] Re: Polymorphic methods "Lyle Johnson" writes: > > Is there a way to duplicate this behavior without resorting to: > > > > def doIt( object ) > > if object.type == String > > ... > > elsif object.type == Numeric > > ... > > end > > end > > In short, nope. That's how to get overloaded functions in Ruby (or Python, > or I suppose any language with dynamic typing). Or use double dispatch...