class BigDecimal

BigDecimal class from Ruby’s standard library. See documentation for version 2.1.3, 2.0.0, or 1.9.3.

Public Instance Methods

duplicable?() click to toggle source

This is required for compatibility with Ruby 1.9.x. In Ruby 1.9.x, dup is not allowed on a BigDecimal and raises a TypeError. Rescue the type error to simply return false.

   # File lib/reactive_support/core_ext/object/duplicable.rb
36 def duplicable?
37   !!self.dup rescue super
38 end