Module: Singleton::SingletonClassMethods

Defined in:
lib/framework/singleton.rb

Instance Method Summary collapse

Instance Method Details

#_load(str) ⇒ Object



86
87
88
# File 'lib/framework/singleton.rb', line 86

def _load(str)
  instance
end

#cloneObject

properly clone the Singleton pattern - did you know that duping doesn’t copy class methods?



82
83
84
# File 'lib/framework/singleton.rb', line 82

def clone
  Singleton.__init__(super)
end