Module: Singleton::SingletonClassMethods

Defined in:
opal/stdlib/singleton.rb

Instance Method Summary collapse

Instance Method Details

#cloneObject



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

def clone
  Singleton.__init__(super)
end

#inherited(sub_klass) ⇒ Object



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

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