From: Dimitrios Galanakis Date: 2003-10-03T03:47:37+09:00 Subject: newbie question: function overloading I need to define a method that performs differently when operated on objects of different type (overloading). Currently I use various if's to check for the type of the object as follows: def somefunction(a) if a.kind_of?(someType) expression1 return end if a.kind_of(someOtherType) expression2 return end i am wondering if there is a simpler way to implement that without the if's, in a way similar to C++ overloading. I mean I would like to define two functions with the same name that will somehow be aware of the type of their argument... sincerely, DG