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: 159,560 of 192,851
Downloads: 3,489

Daily

Ranking: 84,646 of 192,822
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
141,212,637,873minitest
226219,715,554yard
7,923538,681rubygems-tasks

Owners

#GravatarHandle
1iconDamienRobert