Module: Singleton
- Defined in:
- lib/core_ext/duplicable.rb
Instance Method Summary collapse
-
#duplicable? ⇒ Boolean
Singleton instances are not duplicable:.
Instance Method Details
#duplicable? ⇒ Boolean
Singleton instances are not duplicable:
Class.new.include(Singleton).instance.dup # TypeError (can't dup instance of singleton
39 40 41 |
# File 'lib/core_ext/duplicable.rb', line 39 def duplicable? false end |