Class: BigDecimal

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

Instance Method Summary collapse

Instance Method Details

#duplicable?Boolean

BigDecimals are duplicable:

BigDecimal("1.2").duplicable? # => true
BigDecimal("1.2").dup         # => #<BigDecimal:...,'0.12E1',18(18)>

Returns:

  • (Boolean)

111
112
113
# File 'lib/active_support_ext/object/duplicable.rb', line 111

def duplicable?
  true
end