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: 158,078 of 188,802
Downloads: 3,424

Daily

Ranking: 80,626 of 188,779
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
141,127,857,902minitest
225203,360,359yard
7,836510,699rubygems-tasks

Owners

#GravatarHandle
1iconDamienRobert