Sha256: adca06d90285b4100536e59060626bbd031ef41acdc95f2580f940bc0014781e
Contents?: true
Size: 827 Bytes
Versions: 8
Compression:
Stored size: 827 Bytes
Contents
# frozen_string_literal: true require_relative 'transition/transition' module OoxmlParser # Class for parsing `AlternateContent` class PresentationAlternateContent < OOXMLDocumentObject attr_accessor :transition, :timing, :elements def initialize(parent: nil) @elements = elements @parent = parent end # Parse PresentationAlternateContent object # @param node [Nokogiri::XML:Element] node to parse # @return [PresentationAlternateContent] result of parsing def parse(node) node.xpath('mc:Choice/*', 'xmlns:mc' => 'http://schemas.openxmlformats.org/markup-compatibility/2006').each do |node_child| case node_child.name when 'transition' @transition = Transition.new(parent: self).parse(node_child) end end self end end end
Version data entries
8 entries across 8 versions & 1 rubygems