Class: BigDecimal

Inherits:
Object show all
Defined in:
lib/object_identifier/core_ext/big_decimal.rb

Instance Method Summary collapse

Instance Method Details

#inspect_litString

Formats this BigDecimal as an object-type-revealing String.

Examples:

BigDecimal.new(1).inspect_lit          # => "<BD:1.0>"
BigDecimal.new(99.999, 5).inspect_lit  # => "<BD:99.999>"

Returns:

  • (String)

    a String representation of this BigDecimal object



11
12
13
# File 'lib/object_identifier/core_ext/big_decimal.rb', line 11

def inspect_lit
  "<BD:#{self}>"
end