From: Nospam Date: 2005-01-22T00:21:08+09:00 Subject: Re: Refernce objects Richard Turner wrote: > In short, I've rather painfully created a factory method that, given an > ID, returns the correct object from a pre-filled set. However, I now > need to stop people using Section.new and I can't. This leads me to > believe that there may be a Better Way, but I don't know what it is :( There are several things you can do (I think). First you can simply make the initialize or self.new methods private. Secondly you can override the self.new method to be the factory method instead of [] or both. And third, there probably exists a Factory module of some kind which does everything I just told you for you when you simply include the module in your class. Regards, Peter