module Singleton::SingletonClassMethods
Public Instance Methods
_load(str)
click to toggle source
# File lib/rubysl/singleton/singleton.rb, line 86 def _load(str) instance end
clone()
click to toggle source
properly clone the Singleton
pattern - did you know that duping doesn’t copy class methods?
Calls superclass method
# File lib/rubysl/singleton/singleton.rb, line 82 def clone Singleton.__init__(super) end
Private Instance Methods
inherited(sub_klass)
click to toggle source
ensure that the Singleton
pattern is properly inherited
Calls superclass method
# File lib/rubysl/singleton/singleton.rb, line 93 def inherited(sub_klass) super Singleton.__init__(sub_klass) end