Class DBI::Type::Integer
In: lib/dbi/types.rb
Parent: Varchar

Represents a whole number. Falls back to Varchar.

Methods

parse  

Public Class methods

[Source]

# File lib/dbi/types.rb, line 73
            def self.parse(obj)
                return nil if Null.parse(obj).nil?
                return obj.to_i if obj.respond_to? :to_i
                super 
            end

[Validate]