Module: Singleton::SingletonInstanceMethods
- Included in:
- RactorLocalSingleton, Singleton
- Defined in:
- lib/singleton.rb
Instance Method Summary collapse
-
#_dump(depth = -1)) ⇒ Object
By default, do not retain any state when marshalling.
-
#clone ⇒ Object
Raises a TypeError to prevent cloning.
-
#dup ⇒ Object
Raises a TypeError to prevent duping.
Instance Method Details
#_dump(depth = -1)) ⇒ Object
By default, do not retain any state when marshalling.
109 110 111 |
# File 'lib/singleton.rb', line 109 def _dump(depth = -1) '' end |
#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 |
#dup ⇒ Object
Raises a TypeError to prevent duping.
104 105 106 |
# File 'lib/singleton.rb', line 104 def dup raise TypeError, "can't dup instance of singleton #{self.class}" end |