Sha256: 192995a6cc3cb22a40dcafe18997bae3e09da221a0070b695a1dcfc4cb51f087

Contents?: true

Size: 201 Bytes

Versions: 1

Compression:

Stored size: 201 Bytes

Contents

require "bigdecimal"

module Refinements
  module BigDecimalExtensions
    refine BigDecimal do
      def inspect
        format "#<BigDecimal:%x %s>", object_id, to_s("F")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refinements-0.1.0 lib/refinements/big_decimal_extensions.rb