How to Write a Singleton Class in Ruby
A Singleton is a Design Pattern which is used to prevent a class from being instantiated more than once. So there can only be one object of that particular type of class. Writing a Singleton Class in Ruby is very easy and much more straight forward than doing it in Java, for example. It uses […]