Class: BigDecimal

Inherits:
Object show all
Defined in:
lib/core_ext/object/duplicable.rb

Instance Method Summary collapse

Instance Method Details

#duplicable?Boolean

BigDecimals are duplicable:

BigDecimal.new(“1.2”).duplicable? # => true BigDecimal.new(“1.2”).dup # => #<BigDecimal:…,‘0.12E1’,18(18)>

Returns:

  • (Boolean)


87
88
89
# File 'lib/core_ext/object/duplicable.rb', line 87

def duplicable?
  true
end