Class: DBI::Type::Null
- Inherits:
-
Object
- Object
- DBI::Type::Null
- Defined in:
- lib/dbi/types.rb
Overview
Represents a SQL NULL.
Direct Known Subclasses
DBD::MSSQL::Type::Date, DBD::MSSQL::Type::Timestamp, Boolean, Timestamp
Class Method Summary collapse
Class Method Details
.parse(obj) ⇒ Object
50 51 52 53 |
# File 'lib/dbi/types.rb', line 50 def self.parse(obj) return nil if obj.to_s.match(/^null$/i) return obj end |