Sha256: b9d78eaad1f4f4b36efb81147ba7ea6f63bee5b13e079c8afdd5d639a305142f

Contents?: true

Size: 245 Bytes

Versions: 20

Compression:

Stored size: 245 Bytes

Contents

# frozen_string_literal: true

require "bigdecimal"

module Refinements
  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

20 entries across 20 versions & 1 rubygems

Version Path
refinements-8.0.1 lib/refinements/big_decimals.rb
refinements-8.0.0 lib/refinements/big_decimals.rb
refinements-7.18.0 lib/refinements/big_decimals.rb
refinements-7.17.0 lib/refinements/big_decimals.rb
refinements-7.16.0 lib/refinements/big_decimals.rb
refinements-7.15.1 lib/refinements/big_decimals.rb
refinements-7.15.0 lib/refinements/big_decimals.rb
refinements-7.14.0 lib/refinements/big_decimals.rb
refinements-7.13.0 lib/refinements/big_decimals.rb
refinements-7.12.0 lib/refinements/big_decimals.rb
refinements-7.11.0 lib/refinements/big_decimals.rb
refinements-7.10.0 lib/refinements/big_decimals.rb
refinements-7.9.0 lib/refinements/big_decimals.rb
refinements-7.8.0 lib/refinements/big_decimals.rb
refinements-7.7.0 lib/refinements/big_decimals.rb
refinements-7.6.0 lib/refinements/big_decimals.rb
refinements-7.5.0 lib/refinements/big_decimals.rb
refinements-7.4.0 lib/refinements/big_decimals.rb
refinements-7.3.0 lib/refinements/big_decimals.rb
refinements-7.2.0 lib/refinements/big_decimals.rb