A
alterego
Hello all,
I'm writing a C extension, one of the classes I define can only be
instantiated via a defined 'get_instance' singleton method. This method will
only ever return one instance, that is, successive calls will always return
exactly the same ruby object.
My problem is that someone could still call 'new' on the class. I'd like to
remove that possibility by making 'new' private. Unfortunately I can't for the
life of me work out how.
Any help on this subject will be much appreciated. - Tom
=============
Go Burma!
=============
I'm writing a C extension, one of the classes I define can only be
instantiated via a defined 'get_instance' singleton method. This method will
only ever return one instance, that is, successive calls will always return
exactly the same ruby object.
My problem is that someone could still call 'new' on the class. I'd like to
remove that possibility by making 'new' private. Unfortunately I can't for the
life of me work out how.
Any help on this subject will be much appreciated. - Tom
=============
Go Burma!
=============