lib/refinements/big_decimals.rb in refinements-8.2.2 vs lib/refinements/big_decimals.rb in refinements-8.3.0
- old
+ new
@@ -1,9 +1,10 @@
# 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} %{string}>", id: object_id, string: to_s("F"))
end
end