From: Stephan Mueller Date: 2005-08-07T18:21:08+09:00 Subject: Re: polymorphism and/or named parameters: the ruby way? Hi Eric, * Eric Mahurin [050807 04:00]: > I was thinking something like this (I don't think the above > does what you want): > > class MyClass > def self.new_s(s) > obj = new > # do sth with s and obj > obj > end > def self.new_i(i) > obj = new > # do sth with i and obj > obj > end > end You are right. My code was plain wrong. Without using self.new... the method is unknown to Class and super can't work because in Class there is no new_i or new_s. Ouch! Your code works as intended. Thanks! Steph.