Class: NilClass

Inherits:
Object show all
Defined in:
lib/backports/active_support/duplicable.rb

Instance Method Summary collapse

Instance Method Details

#duplicable?Boolean

+nil+ is not duplicable:

nil.duplicable? # => false nil.dup # => TypeError: can't dup NilClass



36
37
38
# File 'lib/backports/active_support/duplicable.rb', line 36

def duplicable?
  false
end