Class: RgGen::SpreadsheetLoader::XLSXLoader

Inherits:
Core::RegisterMap::Loader
  • Object
show all
Includes:
SpreadsheetLoader
Defined in:
lib/rggen/spreadsheet_loader/xlsx_loader.rb

Instance Method Summary collapse

Methods included from SpreadsheetLoader

#read_file

Instance Method Details

#read_spreadsheet(file, book) ⇒ Object



10
11
12
13
# File 'lib/rggen/spreadsheet_loader/xlsx_loader.rb', line 10

def read_spreadsheet(file, book)
  SimpleXlsxReader.open(file)
    .sheets.each { |sheet| process_sheet(sheet, book) }
end