Method: Singleton#clone

Defined in:
lib/singleton.rb

#cloneObject

Raises a TypeError to prevent cloning.

Raises:

  • (TypeError)


96
97
98
# File 'lib/singleton.rb', line 96

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