Class: DBF::ColumnType::Boolean
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from DBF::ColumnType::Base
Instance Method Details
#type_cast(value) ⇒ Object
69 70 71 |
# File 'lib/dbf/column_type.rb', line 69 def type_cast(value) value.strip.match?(/^(y|t)$/i) end |