lib/rbbt/util/misc/objects.rb in rbbt-util-5.13.10 vs lib/rbbt/util/misc/objects.rb in rbbt-util-5.13.11

- old
+ new

@@ -50,10 +50,10 @@ current end def self.zip_fields(array) return [] if array.empty? or (first = array.first).nil? - max = array[1..-1].collect{|l| l.length}.max + max = array.collect{|l| l.length}.max rest = array[1..-1].collect{|v| v.length == 1 & max > 1 ? v * max : v } first = first * max if first.length == 1 and max > 1 first.zip(*rest)