lib/rbbt/tsv/serializers.rb in rbbt-util-5.19.32 vs lib/rbbt/tsv/serializers.rb in rbbt-util-5.19.34
- old
+ new
@@ -34,10 +34,11 @@
def self.dump(array)
array.collect{|a| a.to_s} * "\t"
end
def self.load(string)
- return [] if string.nil?
+ return nil if string.nil? or string == 'nil'
+ return [] if string.empty?
string.split("\t", -1)
end
end
class StringDoubleArraySerializer