If I am writing a module, is there a way to say, make the ability for a user using the class that includes this module
NOT be able to use .new to inialize the class? instead use a diffrent method? Essentially I am asking to make a module where when included it makes the initalize method private
I know you can do in a class:
CODE
private
def inialize
end
public
#some other methods.
But I want the module to take away the idea of doing that and make the initialize method private.
Ideas?
Thread has been reported to be moved to vx
This post has been edited by Adrien.: Sep 3 2011, 06:58 PM