Sha256: 0f036633ce8fa7d9665804213f04b6bfa178f7ac267b2995849edb0e44f5deb7
Contents?: true
Size: 296 Bytes
Versions: 23
Compression:
Stored size: 296 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} %{string}>", id: object_id, string: to_s("F")) end end end
Version data entries
23 entries across 23 versions & 1 rubygems