Class: ADT::ColumnType::Boolean
Instance Method Summary collapse
Instance Method Details
#flag ⇒ Object
22 23 24 |
# File 'lib/adt/column_type.rb', line 22 def flag '' end |
#type_cast(value, _table) ⇒ Object
18 19 20 |
# File 'lib/adt/column_type.rb', line 18 def type_cast(value, _table) value.strip.match?(/^(y|t)$/i) end |