Sha256: 0a610ac71e4b4f650c93a442b6265fb884c730488a6f93f598418640803a1e61

Contents?: true

Size: 341 Bytes

Versions: 4

Compression:

Stored size: 341 Bytes

Contents

module OoxmlParser
  # method to help to work with Presentation
  module PresentationHelpers
    # @return [True, false] if structure contain any user data
    def with_data?
      return true if @slides.length > 1
      @slides.each do |current_slide|
        return true if current_slide.with_data?
      end
      false
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ooxml_parser-0.4.1 lib/ooxml_parser/pptx_parser/pptx_data/presentation/presentation_helpers.rb
ooxml_parser-0.4.0 lib/ooxml_parser/pptx_parser/pptx_data/presentation/presentation_helpers.rb
ooxml_parser-0.3.0 lib/ooxml_parser/pptx_parser/pptx_data/presentation/presentation_helpers.rb
ooxml_parser-0.2.0 lib/ooxml_parser/pptx_parser/pptx_data/presentation/presentation_helpers.rb