Module: OoxmlParser::WorkbookHelpers

Included in:
XLSXWorkbook
Defined in:
lib/ooxml_parser/xlsx_parser/workbook/workbook_helpers.rb

Overview

method to help to work with DocumentStructure

Instance Method Summary collapse

Instance Method Details

#with_data?True, false

Returns if structure contain any user data.

Returns:

  • (True, false)

    if structure contain any user data



7
8
9
10
11
12
# File 'lib/ooxml_parser/xlsx_parser/workbook/workbook_helpers.rb', line 7

def with_data?
  return true if @worksheets.length > 1
  return true if @worksheets.first.with_data?

  false
end