zdavatz/spreadsheet

Cannot write empty excel file

lutusu opened this issue · 1 comments

book = Spreadsheet::Workbook.new
book.write 'filename'
The code above will cause a nil TypeError raised by trying to assign nil to index of focused sheet.

sample code and sample file please.