Module: Singleton

Defined in:
extend/object/duplicable.rb

Instance Method Summary collapse

Instance Method Details

#duplicable?false

Singleton instances are not duplicable:

Class.new.include(Singleton).instance.dup # TypeError (can’t dup instance of singleton

Returns:

  • (false)


56
# File 'extend/object/duplicable.rb', line 56

def duplicable? = false