Sha256: a28419d2f2167a0b6f887cba9ab2d40a1b409cff9c6a46dd29d41c96b58d1eff

Contents?: true

Size: 696 Bytes

Versions: 36

Compression:

Stored size: 696 Bytes

Contents

# frozen_string_literal: true

require_relative 'timing/time_node'
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 = TimeNode.parse_list(node_child)
        end
      end
      self
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
ooxml_parser-0.18.0 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide/timing.rb
ooxml_parser-0.17.0 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide/timing.rb
ooxml_parser-0.16.0 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide/timing.rb
ooxml_parser-0.15.0 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide/timing.rb
ooxml_parser-0.14.2 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide/timing.rb
ooxml_parser-0.14.1-mingw32 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide/timing.rb
ooxml_parser-0.14.1 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide/timing.rb
ooxml_parser-0.14.0 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide/timing.rb
ooxml_parser-0.13.0 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide/timing.rb
ooxml_parser-0.12.2 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide/timing.rb
ooxml_parser-0.12.1 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide/timing.rb
ooxml_parser-0.12.0 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide/timing.rb
ooxml_parser-0.11.0 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide/timing.rb
ooxml_parser-0.10.0 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide/timing.rb
ooxml_parser-0.9.1 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide/timing.rb
ooxml_parser-0.9.0 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide/timing.rb