Class: RgGen::SpreadsheetLoader::CSVLoader
- Inherits:
-
Core::RegisterMap::Loader
- Object
- Core::RegisterMap::Loader
- RgGen::SpreadsheetLoader::CSVLoader
- Includes:
- SpreadsheetLoader
- Defined in:
- lib/rggen/spreadsheet_loader/csv_loader.rb
Instance Method Summary collapse
Methods included from SpreadsheetLoader
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 |