Class: Numeric

Inherits:
Object show all
Defined in:
lib/chewy/backports/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

Returns:

  • (Boolean)


74
75
76
# File 'lib/chewy/backports/duplicable.rb', line 74

def duplicable?
  false
end