class Saxlsx::RowsCollection
Public Class Methods
new(index, file_system, workbook)
click to toggle source
# File lib/saxlsx/rows_collection.rb, line 7 def initialize(index, file_system, workbook) @index = index @file_system = file_system @workbook = workbook @sheet = file_system.sheet(index) end
Public Instance Methods
[](value)
click to toggle source
# File lib/saxlsx/rows_collection.rb, line 24 def [](value) to_a[value] end
count()
click to toggle source
# File lib/saxlsx/rows_collection.rb, line 18 def count @count ||= RowsCollectionCountParser.count @sheet end
Also aliased as: size
each(&block)
click to toggle source
# File lib/saxlsx/rows_collection.rb, line 14 def each(&block) RowsCollectionParser.parse @index, @sheet, @workbook, &block end