Sha256: af7a72c3b6d726fdc43194dc2866dac2f1519bee9594605a02dc8c2e2726fba7
Contents?: true
Size: 525 Bytes
Versions: 4
Compression:
Stored size: 525 Bytes
Contents
# frozen_string_literal: true module Saxlsx class RowsCollection include Enumerable def initialize(index, file_system, workbook) @index = index @file_system = file_system @workbook = workbook @sheet = file_system.sheet(index) end def each(&block) RowsCollectionParser.parse @index, @sheet, @workbook, &block end def count @count ||= RowsCollectionCountParser.count @sheet end alias :size :count def [](value) to_a[value] end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
saxlsx-1.11.0 | lib/saxlsx/rows_collection.rb |
saxlsx-1.10.0 | lib/saxlsx/rows_collection.rb |
saxlsx-1.9.0 | lib/saxlsx/rows_collection.rb |
saxlsx-1.8.0 | lib/saxlsx/rows_collection.rb |