Skip to Content Skip to Search
v7.1.0
module Singleton
Methods
D

Public instance methods

duplicable?()

Permalink

Singleton instances are not duplicable:

Class.new.include(Singleton).instance.dup # TypeError (can't dup instance of singleton
Source code GitHub
# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 57
def duplicable?
  false
end
Definition files