Sha256: c36bd289c9898f847035c67e08e715fe9e977fd2c6ac97b69575377229fdc31c
Contents?: true
Size: 407 Bytes
Versions: 16
Compression:
Stored size: 407 Bytes
Contents
require "bigdecimal" unless BigDecimal.method_defined?(:to_d) BigDecimal.class_eval do def to_d #:nodoc: self end end end unless Bignum.method_defined?(:to_d) Bignum.class_eval do def to_d #:nodoc: BigDecimal.new(self.to_s) end end end unless Fixnum.method_defined?(:to_d) Fixnum.class_eval do def to_d #:nodoc: BigDecimal.new(self.to_s) end end end
Version data entries
16 entries across 16 versions & 4 rubygems