Class: Numeric

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

Instance Method Summary collapse

Instance Method Details

#duplicable?Boolean

Numbers are not duplicable:

3.duplicable? # => false 3.dup # => TypeError: can't dup Fixnum



72
73
74
# File 'lib/backports/active_support/duplicable.rb', line 72

def duplicable?
  false
end