class DBI::Type::Integer
Represents a whole number. Falls back to Varchar.
Public Class Methods
parse(obj)
click to toggle source
Calls superclass method
DBI::Type::Varchar.parse
# 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