Registry / utility / singleton

singleton

JSON →
library0.3.0rbrubygemsunverified

The Singleton module implements the Singleton pattern, ensuring a class has only one instance.

gem install singleton
INSTALL
IMPORT
SIG · SINGLETON
S
singleton
utilityrubyv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Singleton
require 'singleton'

Create a singleton class

require 'singleton' class MyClass include Singleton end obj = MyClass.instance
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
singleton — gem install singleton · libregistry