Singleton pattern implemented in Ruby