Module: Singleton

Included in:
ActiveModel::NullMutationTracker, ActiveSupport::Deprecation, MultiJson::Adapter, Rake::EarlyTime, Rake::LateTime, WEBrick::Utils::TimeoutHandler
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/core_ext/object/duplicable.rb

Instance Method Summary collapse

Instance Method Details

#duplicable?Boolean

Singleton instances are not duplicable:

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

Returns:

  • (Boolean)


57
58
59
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/core_ext/object/duplicable.rb', line 57

def duplicable?
  false
end