Singleton Design pattern make sure that you can create only one object of a class. This kind of design pattern is useful where you want different clients to share the same object, Logger is a good example of singleton design pattern, you don’t want every class and script in your project to use its own […]
The post Singleton Design pattern in Ruby appeared first on Brown Fort.