Sha256: bd93e822130448a2be50d0dffc6c2d0431a612b5c49e6d04b25a7eb59b70aa83

Contents?: true

Size: 172 Bytes

Versions: 2

Compression:

Stored size: 172 Bytes

Contents

require 'bigdecimal'

class BigDecimal
  def inspect
    value = if self == self.to_i
      to_i
    else
      to_s('F')
    end
    %{#<BigDecimal:"#{value}">}
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
big_decimal_inspect-0.0.2 lib/big_decimal_inspect.rb
big_decimal_inspect-0.0.1 lib/big_decimal_inspect.rb