class OoxmlParser::ShapeStyle
Class for parsing ‘wps:style` tags
Attributes
@return [FillReference] effect reference
@return [FillReference] fill reference
@return [FontReference] font reference
@return [LineReference] line reference
Public Instance Methods
Source
# File lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/shape/docx_shape/shape_style.rb, line 20 def parse(node) node.xpath('*').each do |node_child| case node_child.name when 'effectRef' @effect_reference = StyleMatrixReference.new(parent: self).parse(node_child) when 'fillRef' @fill_reference = StyleMatrixReference.new(parent: self).parse(node_child) when 'fontRef' @font_reference = FontReference.new(parent: self).parse(node_child) when 'lnRef' @line_reference = StyleMatrixReference.new(parent: self).parse(node_child) end end self end
Parse ShapeStyle
object @param node [Nokogiri::XML:Element] node to parse @return [ShapeStyle] result of parsing