Class: Saxlsx::SheetCollection

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/saxlsx/sheet_collection.rb

Instance Method Summary collapse

Constructor Details

#initialize(file_system, workbook) ⇒ SheetCollection

Returns a new instance of SheetCollection.



7
8
9
10
# File 'lib/saxlsx/sheet_collection.rb', line 7

def initialize(file_system, workbook)
  @file_system = file_system
  @workbook = workbook
end

Instance Method Details

#each(&block) ⇒ Object



12
13
14
# File 'lib/saxlsx/sheet_collection.rb', line 12

def each(&block)
  SheetCollectionParser.parse @file_system, @workbook, &block
end