Module: Singleton::SingletonClassMethods

Defined in:
/Users/elia/Code/opal-docs/opal/stdlib/singleton.rb

Instance Method Summary collapse

Instance Method Details

#cloneObject


12
13
14
# File '/Users/elia/Code/opal-docs/opal/stdlib/singleton.rb', line 12

def clone
  Singleton.__init__(super)
end

#inherited(sub_klass) ⇒ Object


16
17
18
19
# File '/Users/elia/Code/opal-docs/opal/stdlib/singleton.rb', line 16

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