Method: ExcelValidator::ValidateFile#empty_sheets_present?
- Defined in:
- lib/excel_validator.rb
#empty_sheets_present? ⇒ Boolean
Returns true if there is an empty sheet in the file
82 83 84 85 86 87 88 |
# File 'lib/excel_validator.rb', line 82 def empty_sheets_present? @file.sheets.count.times do |sheet_number| set_default_sheet(sheet_number + 1) @file.first_row ? next : (return true) end false end |