Method: DBF::ColumnType::String#type_cast
- Defined in:
- lib/dbf/column_type.rb
#type_cast(value) ⇒ Object
114 115 116 117 |
# File 'lib/dbf/column_type.rb', line 114 def type_cast(value) value = value.strip @encoding ? value.force_encoding(@encoding).encode(Encoding.default_external, undef: :replace, invalid: :replace) : value end |