On this page
class BigDecimal
Public Instance Methods
# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 111
def duplicable?
true
end
BigDecimals are duplicable:
BigDecimal.new(“1.2”).duplicable? # => true BigDecimal.new(“1.2”).dup # => #<BigDecimal:…,'0.12E1',18(18)>
© 2004–2018 David Heinemeier Hansson
Licensed under the MIT License.