Skip to content

A singleton class, implemented to act as a parent for singleton classes in my projects

License

Notifications You must be signed in to change notification settings

waheedi/singleton-ruby-class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

singleton-ruby-class

A singleton class, implemented to act as a parent for singleton classes in my projects

Preventing Derivatives

in this class I have tried to make sure derivatives can't implement their own class methods; new, and allocate, also the same applies for the instance methods; clone and dup.

It should be sufficient for almost any singleton pattern usage, it's thread and fork (Ruby Kernel::fork) safe (ruby 2.6.0).

About

A singleton class, implemented to act as a parent for singleton classes in my projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages