跳至内容 跳至搜索
方法
D

实例公开方法

duplicable?()

Singleton 实例不可复制

Class.new.include(Singleton).instance.dup # TypeError (can't dup instance of singleton
# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 66
def duplicable?
  false
end