class OoxmlParser::Timing
Class for parsing ‘timing`
Attributes
build_list[RW]
extension_list[RW]
time_node_list[RW]
Public Class Methods
new(parent: nil)
click to toggle source
Calls superclass method
OoxmlParser::OOXMLDocumentObject::new
# File lib/ooxml_parser/pptx_parser/presentation/slide/slide/timing.rb, line 9 def initialize(parent: nil) @time_node_list = [] @build_list = [] @extension_list = [] super end
Public Instance Methods
parse(node)
click to toggle source
Parse Timing
object @param node [Nokogiri::XML:Element] node to parse @return [Timing] result of parsing
# File lib/ooxml_parser/pptx_parser/presentation/slide/slide/timing.rb, line 19 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