Method: ExcelAbstraction::WorkBook#initialize
- Defined in:
- lib/excel_templating/excel_abstraction/work_book.rb
#initialize(file, format: :xls, skip_default_sheet: false) ⇒ WorkBook
Returns a new instance of WorkBook.
5 6 7 8 9 10 11 12 |
# File 'lib/excel_templating/excel_abstraction/work_book.rb', line 5 def initialize(file, format: :xls, skip_default_sheet: false) @format = format @file = file super(workbook) unless skip_default_sheet @active_sheet = ExcelAbstraction::Sheet.new(workbook.add_worksheet, workbook) end end |