123456789_123456789_123456789_123456789_123456789_

Module: Singleton

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
ActionDispatch::ServerTiming::Subscriber, ActiveJob::Serializers::BigDecimalSerializer, ActiveJob::Serializers::DateSerializer, ActiveJob::Serializers::DateTimeSerializer, ActiveJob::Serializers::DurationSerializer, ActiveJob::Serializers::ModuleSerializer, ::ActiveJob::Serializers::ObjectSerializer, ::ActiveJob::Serializers::RangeSerializer, ActiveJob::Serializers::SymbolSerializer, ActiveJob::Serializers::TimeObjectSerializer, ActiveJob::Serializers::TimeSerializer, ActiveJob::Serializers::TimeWithZoneSerializer, ActiveModel::NullMutationTracker, ::Mime::AllType, ::Mime::NullType
Defined in: activesupport/lib/active_support/core_ext/object/duplicable.rb

Instance Attribute Summary

Instance Attribute Details

#duplicable?Boolean (readonly)

Singleton instances are not duplicable:

Class.new.include(Singleton).instance.dup # TypeError (can't dup instance of singleton
[ GitHub ]

  
# File 'activesupport/lib/active_support/core_ext/object/duplicable.rb', line 66

def duplicable?
  false
end