Class: DBI::Type::Decimal

Inherits:
Float show all
Defined in:
lib/dbi/types.rb

Overview

Represents a Decimal with real precision (BigDecimal). Falls back to Float.

Class Method Summary collapse

Class Method Details

.parse(obj) ⇒ Object



97
98
99
# File 'lib/dbi/types.rb', line 97

def self.parse(obj)
    BigDecimal.new(obj) rescue super
end