Class: Saxlsx::SheetCollection
- Inherits:
-
Object
- Object
- Saxlsx::SheetCollection
- Includes:
- Enumerable
- Defined in:
- lib/saxlsx/sheet_collection.rb
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(file_system, workbook) ⇒ SheetCollection
constructor
A new instance of SheetCollection.
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 |