Sha256: d5ec165de29c4f21e648dc87478faff0200bc139eb58134e066892fc8244021b

Contents?: true

Size: 727 Bytes

Versions: 4

Compression:

Stored size: 727 Bytes

Contents

# frozen_string_literal: true

require_relative 'timing/time_node_list'
module OoxmlParser
  # Class for parsing `timing`
  class Timing < OOXMLDocumentObject
    attr_accessor :time_node_list, :build_list, :extension_list

    def initialize(parent: nil)
      @time_node_list = []
      @build_list = []
      @extension_list = []
      super
    end

    # Parse Timing object
    # @param node [Nokogiri::XML:Element] node to parse
    # @return [Timing] result of parsing
    def parse(node)
      node.xpath('*').each do |node_child|
        case node_child.name
        when 'tnLst'
          @time_node_list = TimeNodeList.new(parent: self).parse(node_child).elements
        end
      end
      self
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ooxml_parser-0.37.1 lib/ooxml_parser/pptx_parser/presentation/slide/slide/timing.rb
ooxml_parser-0.37.0 lib/ooxml_parser/pptx_parser/presentation/slide/slide/timing.rb
ooxml_parser-0.36.1 lib/ooxml_parser/pptx_parser/presentation/slide/slide/timing.rb
ooxml_parser-0.36.0 lib/ooxml_parser/pptx_parser/presentation/slide/slide/timing.rb