module OoxmlParser::WorkbookHelpers

method to help to work with DocumentStructure

Public Instance Methods

with_data?() click to toggle source

@return [True, false] if structure contain any user data

# File lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/workbook_helpers.rb, line 7
def with_data?
  return true if @worksheets.length > 1
  return true if @worksheets.first.with_data?

  false
end