Class: RgGen::SpreadsheetLoader::CSVLoader

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

Instance Method Summary collapse

Methods included from SpreadsheetLoader

#read_file

Instance Method Details

#read_spreadsheet(file, book) ⇒ Object



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

def read_spreadsheet(file, book)
  sheet = read_csv(file)
  sheet_name = File.basename(file, '.*')
  book.add_sheet(sheet_name, sheet)
end