Sha256: bdef27cb0a97e8d1028ae03663f45fdb82ed9466c7f6fd209904e3c397970dea

Contents?: true

Size: 235 Bytes

Versions: 2

Compression:

Stored size: 235 Bytes

Contents

require "bigdecimal"

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
refinements-2.0.0 lib/refinements/big_decimal_extensions.rb
refinements-1.0.0 lib/refinements/big_decimal_extensions.rb