Sha256: 335ffd515582ad9d9e693ae241dc0638afc29ff52fbda915c07b5e5a900b7d74
Contents?: true
Size: 423 Bytes
Versions: 12
Compression:
Stored size: 423 Bytes
Contents
# patch for skipping blank rows in the case of # having a spreadsheet with 30,000 nil rows appended # to the actual data. (it happens and your RAM will love me) class Spreadsheet::Worksheet def each skip=dimensions[0] blanks = 0 skip.upto(dimensions[1] - 1) do |i| if row(i).any? Proc.new.call(row(i)) else blanks += 1 blanks < 20 ? next : return end end end end
Version data entries
12 entries across 12 versions & 2 rubygems