class OoxmlParser::CommonSlideData
Class for parsing ‘cSld` tag
Attributes
@return [Background] background
@return [ShapeTree] tree of shape
Public Instance Methods
Source
# File lib/ooxml_parser/pptx_parser/presentation/slide/common_slide_data.rb, line 16 def parse(node) node.xpath('*').each do |node_child| case node_child.name when 'spTree' @shape_tree = ShapeTree.new(parent: self).parse(node_child) when 'bg' @background = Background.new(parent: self).parse(node_child) end end self end
Parse CommonSlideData
object @param node [Nokogiri::XML:Element] node to parse @return [CommonSlideData] result of parsing