From: Brian Candler Date: 2003-04-14T23:22:59+09:00 Subject: Re: [Q] A class, that knows about it's instances + Sets On Mon, Apr 14, 2003 at 10:44:57PM +0900, Chris Pine wrote: > def initialize fromCreateKey > raise 'Illegal object creation.' if fromCreateKey != > :afdifw489r3k4jge98 FWIW, I believe the normal way of doing this is simply to make 'new' private (unless I'm missing some reason why this can't be done) - or in this case protected because there are multiple classes involved: class Parent class <