Sha256: 2bc5127cdd0693d7f25f22550dfe6e138f2fab1526da4e90ae76b8a6fac32205
Contents?: true
Size: 279 Bytes
Versions: 3
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
refinements-5.1.0 | lib/refinements/big_decimals.rb |
refinements-5.0.2 | lib/refinements/big_decimals.rb |
refinements-5.0.1 | lib/refinements/big_decimals.rb |