Method: Singleton::SingletonInstanceMethods#clone

Defined in:
lib/singleton.rb

#cloneObject

Raises a TypeError to prevent cloning.

Raises:

  • (TypeError)


99
100
101
# File 'lib/singleton.rb', line 99

def clone
  raise TypeError, "can't clone instance of singleton #{self.class}"
end