lib/saxlsx/rows_collection.rb in saxlsx-0.3.0 vs lib/saxlsx/rows_collection.rb in saxlsx-1.0.0

- old
+ new

@@ -1,18 +1,18 @@ module Saxlsx class RowsCollection include Enumerable - def initialize(index, file_system, shared_strings) + def initialize(index, file_system, workbook) @index = index @file_system = file_system - @shared_strings = shared_strings + @workbook = workbook @sheet = file_system.sheet(index) end def each(&block) - RowsCollectionParser.parse @index, @sheet, @shared_strings, &block + RowsCollectionParser.parse @index, @sheet, @workbook, &block end def count @count ||= @sheet.match(/<dimension ref="[^:]+:[A-Z]*(\d+)"/)[1].to_i end