Sha256: ede316fcf553827cd393c2d0a1091b807536f7b3c475d13e006b10d8a7807fb7
Contents?: true
Size: 707 Bytes
Versions: 8
Compression:
Stored size: 707 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 = [] @parent = parent 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
8 entries across 8 versions & 1 rubygems