Module: Singleton
Instance Attribute Summary
-
#duplicable? ⇒ Boolean
readonly
Singleton
instances are not duplicable:
Instance Attribute Details
#duplicable? ⇒ Boolean
(readonly)
Singleton
instances are not duplicable:
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