Module: OoxmlParser::PresentationHelpers

Included in:
Presentation
Defined in:
lib/ooxml_parser/pptx_parser/presentation/presentation_helpers.rb

Overview

method to help to work with Presentation

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
13
14
# File 'lib/ooxml_parser/pptx_parser/presentation/presentation_helpers.rb', line 7

def with_data?
  return true if @slides.length > 1

  @slides.each do |current_slide|
    return true if current_slide.with_data?
  end
  false
end