W3cubDocs

/Ruby on Rails 5.2

class BigDecimal

Parent:
Object

Public Instance Methods

duplicable?() Show source
# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 113
def duplicable?
  true
end

BigDecimals are duplicable:

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

© 2004–2018 David Heinemeier Hansson
Licensed under the MIT License.