Sha256: a181edef1165cc8fd9f8d11fb5e8aeb59fa63b03430b9b6ed47a33061f83c5b3

Contents?: true

Size: 497 Bytes

Versions: 12

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true

module OoxmlParser
  # method to help to work with SlideMasters
  module SlideMastersHelper
    # @return [Array<String>] list of slide masters files
    def slide_masters_files
      Dir["#{root_object.unpacked_folder}ppt/slideMasters/*.xml"]
    end

    private

    # Parse slide masters file
    def parse_slide_masters
      slide_masters_files.each do |file|
        @slide_masters << SlideMasterFile.new(parent: self).parse(file)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ooxml_parser-0.37.1 lib/ooxml_parser/pptx_parser/presentation/slide_masters_helper.rb
ooxml_parser-0.37.0 lib/ooxml_parser/pptx_parser/presentation/slide_masters_helper.rb
ooxml_parser-0.36.1 lib/ooxml_parser/pptx_parser/presentation/slide_masters_helper.rb
ooxml_parser-0.36.0 lib/ooxml_parser/pptx_parser/presentation/slide_masters_helper.rb
ooxml_parser-0.35.0 lib/ooxml_parser/pptx_parser/presentation/slide_masters_helper.rb
ooxml_parser-0.34.2 lib/ooxml_parser/pptx_parser/presentation/slide_masters_helper.rb
ooxml_parser-0.34.1 lib/ooxml_parser/pptx_parser/presentation/slide_masters_helper.rb
ooxml_parser-0.34.0 lib/ooxml_parser/pptx_parser/presentation/slide_masters_helper.rb
ooxml_parser-0.33.0 lib/ooxml_parser/pptx_parser/presentation/slide_masters_helper.rb
ooxml_parser-0.32.0 lib/ooxml_parser/pptx_parser/presentation/slide_masters_helper.rb
ooxml_parser-0.31.0 lib/ooxml_parser/pptx_parser/presentation/slide_masters_helper.rb
ooxml_parser-0.30.0 lib/ooxml_parser/pptx_parser/presentation/slide_masters_helper.rb