class OoxmlParser::ConditionList
Class for parsing ‘stCondLst` tags
Attributes
list[R]
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/time_node_list/time_node/common_timing/condition_list.rb, line 9 def initialize(parent: nil) @list = [] super end
Public Instance Methods
parse(node)
click to toggle source
Parse ConditionList
object @param node [Nokogiri::XML:Element] node to parse @return [ConditionList] result of parsing
# File lib/ooxml_parser/pptx_parser/presentation/slide/slide/timing/time_node_list/time_node/common_timing/condition_list.rb, line 17 def parse(node) node.xpath('*').each do |node_child| case node_child.name when 'cond' @list << Condition.new(parent: self).parse(node_child) end end self end