Sha256: 3115388a3652803e0644f9e8f032e245d6c0c78d77e705511528520de05acde6

Contents?: true

Size: 298 Bytes

Versions: 7

Compression:

Stored size: 298 Bytes

Contents

# frozen_string_literal: true

require "bigdecimal"

module Refinements
  # Provides additional enhancements to the BigDecimal primitive.
  module BigDecimals
    refine BigDecimal do
      def inspect = format("#<BigDecimal:%<id>s %<string>s>", id: object_id, string: to_s("F"))
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
refinements-11.1.3 lib/refinements/big_decimals.rb
refinements-11.1.2 lib/refinements/big_decimals.rb
refinements-11.1.1 lib/refinements/big_decimals.rb
refinements-11.1.0 lib/refinements/big_decimals.rb
refinements-11.0.1 lib/refinements/big_decimals.rb
refinements-11.0.0 lib/refinements/big_decimals.rb
refinements-10.1.1 lib/refinements/big_decimals.rb