Class: DBF::ColumnType::Memo
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
96 97 98 99 100 101 102 |
# File 'lib/dbf/column_type.rb', line 96 def type_cast(value) if encoding && !value.nil? value.force_encoding(@encoding).encode(Encoding.default_external, undef: :replace, invalid: :replace) else value end end |