Categories: None [Edit]

tiny_singleton

https://rubygems.org/gems/tiny_singleton
https://github.com/DamienRobert/tiny_singleton
Tiny Singleton is a very simple implementation of the Singleton Design Pattern. Compared to the Singleton module in the stdlib, one does not need to class 'klass.instance' to get access to the singleton object, one can call 'klass.new' as usual. It is thus easier to add the Singleton Pattern to an existing class without changing the way the code calls it.

Total

Ranking: 152,983 of 180,477
Downloads: 3,092

Daily

Ranking: 50,107 of 180,469
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
20801,626,485minitest
222142,162,182yard
7,371402,055rubygems-tasks

Owners

#GravatarHandle
1iconDamienRobert