Module: Singleton::SingletonClassMethods

Defined in:
lib/singleton.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#_load(str) ⇒ Object

By default calls instance(). Override to retain singleton state.


119
120
121
# File 'lib/singleton.rb', line 119

def _load(str)
  instance
end

#cloneObject

:nodoc:


114
115
116
# File 'lib/singleton.rb', line 114

def clone # :nodoc:
  Singleton.__init__(super)
end