class DBF::ColumnType::Number
Public Instance Methods
Source
# File lib/dbf/column_type.rb, line 23 def type_cast(value) return nil if value.strip.empty? @decimal.zero? ? value.to_i : value.to_f end
@param value [String]
# File lib/dbf/column_type.rb, line 23 def type_cast(value) return nil if value.strip.empty? @decimal.zero? ? value.to_i : value.to_f end
@param value [String]