Sha256: 0e2aac6f5e14e4d4478601c8d89534da33a4d46c9df0b11d9c9e534dee637130
Contents?: true
Size: 462 Bytes
Versions: 9
Compression:
Stored size: 462 Bytes
Contents
# frozen_string_literal: true require "bigdecimal" # Reopen the core BigDecimal class to represent {#inspect_lit}. class BigDecimal # Formats this BigDecimal as an object-type-revealing String. # # @return [String] a String representation of this BigDecimal object # # @example # BigDecimal.new(1).inspect_lit # => "<BD:1.0>" # BigDecimal.new(99.999, 5).inspect_lit # => "<BD:99.999>" def inspect_lit "<BD:#{self}>" end end
Version data entries
9 entries across 9 versions & 1 rubygems