module Singleton::SingletonInstanceMethods
Public Instance Methods
Source
# File lib/singleton.rb, line 109 def _dump(depth = -1) '' end
By default, do not retain any state when marshalling.
Source
# File lib/singleton.rb, line 99
def clone
raise TypeError, "can't clone instance of singleton #{self.class}"
end Raises a TypeError to prevent cloning.
Ruby Core © 1993–2024 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.