# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 57 def duplicable? false end
Singleton instances are not duplicable:
Singleton
Class.new.include(Singleton).instance.dup # TypeError (can't dup instance of singleton
© 2004–2021 David Heinemeier HanssonLicensed under the MIT License.