Seishin's Life
  • Home
  • About Me
Sign in Subscribe

singleton

Ruby Singleton Pattern

The singleton pattern is probably one of the most used patterns in the development process. Here I will show you how to do it in Ruby. It's so easy! Ruby Standard Library has a Singleton Module which implements the singleton pattern. Just include the singleton module inside your class and
Atanas Dimitrov Sep 29, 2017

Subscribe to Seishin's Life

Don't miss out on the latest news. Sign up now to get access to the library of members-only articles.
  • Sign up
Seishin's Life © 2023. Powered by Ghost