method

duplicable?

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Singleton
duplicable?() public

Singleton instances are not duplicable:

Class.new.include(Singleton).instance.dup # TypeError (can't dup instance of singleton
Show source
Register or log in to add new notes.