Methods

Instance Public methods

duplicable?()

BigDecimals are duplicable:

BigDecimal("1.2").duplicable? # => true
BigDecimal("1.2").dup         # => #<BigDecimal:...,'0.12E1',18(18)>
📝 Source code
# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 113
  def duplicable?
    true
  end
🔎 See on GitHub