Sha256: 88a41eb6567d77a1f63421701e676384d217e44e60faa8ff3c0a1f90be246539
Contents?: true
Size: 228 Bytes
Versions: 1
Compression:
Stored size: 228 Bytes
Contents
class BigDecimal def to_s_with_format(*args) if args.empty? "%.2f" % self else to_s_without_format(*args) end end alias_method :to_s_without_format, :to_s alias_method :to_s, :to_s_with_format end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
big_decimal_price-0.1.0 | lib/big_decimal.rb |