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