R
R. Mark Volkmann
What is the recommended way in Ruby to prevent other classes from creating
instances of a given class? The class isn't a singleton. It creates several
instances of itself and no additional instances should be able to be created.
I considered making the new method private, but thought there might be a better
way.
instances of a given class? The class isn't a singleton. It creates several
instances of itself and no additional instances should be able to be created.
I considered making the new method private, but thought there might be a better
way.