Class: ExcelReader
- Inherits:
-
SpreadsheetReader
- Object
- GenericSheet
- SpreadsheetReader
- ExcelReader
- Includes:
- RooModule
- Defined in:
- lib/simple-spreadsheet/readers/excel_reader.rb
Instance Method Summary collapse
- #foreach(sheet, &block) ⇒ Object
-
#initialize(file) ⇒ ExcelReader
constructor
A new instance of ExcelReader.
Methods included from RooModule
#cell, #celltype, #first_column, #first_row, #last_column, #last_row, #selected_sheet=, #sheets
Methods inherited from SpreadsheetReader
#cell, #celltype, #first_column, #first_row, #last_column, #last_row, #parse, #selected_sheet=, #sheets
Methods inherited from GenericSheet
Constructor Details
#initialize(file) ⇒ ExcelReader
Returns a new instance of ExcelReader.
3 4 5 6 |
# File 'lib/simple-spreadsheet/readers/excel_reader.rb', line 3 def initialize(file) super @engine = ExcelExtended.new(@path) # Roo end |
Instance Method Details
#foreach(sheet, &block) ⇒ Object
8 9 10 |
# File 'lib/simple-spreadsheet/readers/excel_reader.rb', line 8 def foreach(sheet, &block) @engine.foreach(sheet, &block) end |