From: Timothy Hunter Date: 2006-12-03T08:31:41+09:00 Subject: Re: Factory pattern, abstract base class Daniel Berger wrote: > Perhaps my whole approach is wrong. What is the proper way to achieve > what I'm after (without resorting to making Bar a module)? > The return value from initialize has nothing to do with the object returned from new, which will always be a new instance of the class. To do what you want, define a singleton method not named "new" that returns a new object based on its argument.