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 72
72:             def self.parse(obj)
73:                 return nil if Null.parse(obj).nil?
74:                 return obj.to_i if obj.respond_to? :to_i
75:                 super 
76:             end

[Validate]