模块 Singleton::SingletonInstanceMethods
公共实例方法
源
# File lib/singleton.rb, line 109 def _dump(depth = -1) '' end
默认情况下,在编组时不会保留任何状态。
源
# File lib/singleton.rb, line 99 def clone raise TypeError, "can't clone instance of singleton #{self.class}" end
抛出一个 TypeError
异常以防止克隆。