gangelo / ProtectedConstructor

Provides a module that may be included in a Ruby class, that protects the constructor; good for enforcing instantiation of classes using, for instance, a class factory. The code itself is not mine, I just wrapped it in a gem and provided the examples; sorry, I don't remember the origin of the code to give credit. :S

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gangelo/ProtectedConstructor Issues

No issues in this repository yet.