Sha256: 09cc61ff9e5a8e86ed53eb0539838b1e3c12d84e3d0ca32ebad1c94147c1c97c

Contents?: true

Size: 300 Bytes

Versions: 4

Compression:

Stored size: 300 Bytes

Contents

module OoxmlParser
  # method to help to work with DocumentStructure
  module WorkbookHelpers
    # @return [True, false] if structure contain any user data
    def with_data?
      return true if @worksheets.length > 1
      return true if @worksheets.first.with_data?
      false
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ooxml_parser-0.4.1 lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/workbook_helpers.rb
ooxml_parser-0.4.0 lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/workbook_helpers.rb
ooxml_parser-0.3.0 lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/workbook_helpers.rb
ooxml_parser-0.2.0 lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/workbook_helpers.rb