module OoxmlParser::DocumentStructureHelpers
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/docx_parser/docx_data/document_structure/document_structure_helpers.rb, line 7 def with_data? @elements.each do |current_element| return true if current_element.with_data? end @notes.each do |current_note| current_note.elements.each do |note_element| return true if note_element.with_data? end end false end