Design patern | Ram Laxman Yadav

Design patern

Design Patterns in Ruby: Singleton

The concept of the Singleton pattern is fairly straightforward: only a single instance of a class can exist. This can be useful when an application allows only one object to be instantiated for a given class.