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