Class: Numeric

Inherits:
Object show all
Defined in:
lib/symbolized/core_ext/object/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)


75
76
77
# File 'lib/symbolized/core_ext/object/duplicable.rb', line 75

def duplicable?
  false
end