Method: Singleton::SingletonInstanceMethods#clone
- Defined in:
- lib/singleton.rb
#clone ⇒ Object
Raises a TypeError to prevent cloning.
99 100 101 |
# File 'lib/singleton.rb', line 99 def clone raise TypeError, "can't clone instance of singleton #{self.class}" end |