Sha256: 6c62fb8414cd026e4dac9b61ff56c8cc71a92e517216a8143c8e1c1425c01e69

Contents?: true

Size: 343 Bytes

Versions: 2

Compression:

Stored size: 343 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
object_identifier-0.0.6 lib/object_identifier/core_ext/big_decimal.rb
object_identifier-0.0.5 lib/object_identifier/core_ext/big_decimal.rb