Sha256: bc2a0c9e0236719bfb0a5b43ec3884473965eae1dce32db47dfd04fdb3d187ba

Contents?: true

Size: 279 Bytes

Versions: 11

Compression:

Stored size: 279 Bytes

Contents

# frozen_string_literal: true

require "bigdecimal"

module Refinements
  # Refinements for big decimals.
  module BigDecimals
    refine BigDecimal do
      def inspect
        format "#<BigDecimal:%{id} %{string}>", id: object_id, string: to_s("F")
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
refinements-7.1.0 lib/refinements/big_decimals.rb
refinements-7.0.0 lib/refinements/big_decimals.rb
refinements-6.3.2 lib/refinements/big_decimals.rb
refinements-6.3.1 lib/refinements/big_decimals.rb
refinements-6.3.0 lib/refinements/big_decimals.rb
refinements-6.2.2 lib/refinements/big_decimals.rb
refinements-6.2.1 lib/refinements/big_decimals.rb
refinements-6.2.0 lib/refinements/big_decimals.rb
refinements-6.1.0 lib/refinements/big_decimals.rb
refinements-6.0.0 lib/refinements/big_decimals.rb
refinements-5.2.0 lib/refinements/big_decimals.rb