Module: Singleton::SingletonClassMethods

Defined in:
opal/stdlib/singleton.rb

Instance Method Summary collapse

Instance Method Details

#cloneObject


12
13
14
# File 'opal/stdlib/singleton.rb', line 12

def clone
  Singleton.__init__(super)
end

#inherited(sub_klass) ⇒ Object


16
17
18
19
# File 'opal/stdlib/singleton.rb', line 16

def inherited(sub_klass)
  super
  Singleton.__init__(sub_klass)
end