lib/eco/csv/stream.rb in eco-helpers-2.7.16 vs lib/eco/csv/stream.rb in eco-helpers-2.7.17
- old
+ new
@@ -35,9 +35,10 @@
log(:debug) { msg.join("\n") }
end
end
def move_to_idx(start_at_idx)
+ start_at_idx ||= 0
next_idx while (idx < start_at_idx) && (self.row = csv.shift)
end
private