Sha256: 6cfc588ea89da7afbddb0b39a9c0fd87e704489d049abf6d5644ccb41d35a24f

Contents?: true

Size: 266 Bytes

Versions: 3

Compression:

Stored size: 266 Bytes

Contents

# frozen_string_literal: true

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

3 entries across 3 versions & 1 rubygems

Version Path
refinements-2.2.1 lib/refinements/big_decimal_extensions.rb
refinements-2.2.0 lib/refinements/big_decimal_extensions.rb
refinements-2.1.0 lib/refinements/big_decimal_extensions.rb