Class: ADT::ColumnType::Boolean

Inherits:
Base
  • Object
show all
Defined in:
lib/adt/column_type.rb

Instance Method Summary collapse

Instance Method Details

#flagObject



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