lib/refinements/big_decimals.rb in refinements-8.0.1 vs lib/refinements/big_decimals.rb in refinements-8.1.0
- old
+ new
@@ -3,11 +3,9 @@
require "bigdecimal"
module Refinements
module BigDecimals
refine BigDecimal do
- def inspect
- format "#<BigDecimal:%{id} %{string}>", id: object_id, string: to_s("F")
- end
+ def inspect = format("#<BigDecimal:%{id} %{string}>", id: object_id, string: to_s("F"))
end
end
end