gilt/rubyXL — Issue #12: Feature request: Enumerable for worksheet
Author: josemic
Created: 2011-12-20 15:51:42+00:00
State: open

I'd like to iterate above the rows of a worksheet with each or with each_index.

workbook[1].each_with_index do |x,xindex|
x.each_with_index do |y, yindex|
print(xindex, yindex, x[y].value)
puts
end
puts
end

This functionality is typically available in ruby csv-library and ruby-spreadsheet-library.
Typically this is implemeted by including Enumerable and inplementing the each method.