Sha256: 01f04d3c502bc17b8a430811970067fbf4b2703798dc377995b009634b3487f5

Contents?: true

Size: 257 Bytes

Versions: 8

Compression:

Stored size: 257 Bytes

Contents

# frozen_string_literal: true

require "bigdecimal"

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
refinements-4.3.1 lib/refinements/big_decimals.rb
refinements-4.3.0 lib/refinements/big_decimals.rb
refinements-4.2.0 lib/refinements/big_decimals.rb
refinements-4.1.0 lib/refinements/big_decimals.rb
refinements-4.0.0 lib/refinements/big_decimals.rb
refinements-3.2.0 lib/refinements/big_decimals.rb
refinements-3.1.0 lib/refinements/big_decimals.rb
refinements-3.0.0 lib/refinements/big_decimals.rb