class OoxmlParser::SDTProperties
Class for parsing `w:sdtPr` tags
Attributes
alias[R]
@return [ValuedChild] alias value
lock[R]
@return [ValuedChild] Locking Setting
tag[R]
@return [ValuedChild] tag value
Public Instance Methods
parse(node)
click to toggle source
Parse SDTProperties
object @param node [Nokogiri::XML:Element] node to parse @return [SDTProperties] result of parsing
# File lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/sdt/sdt_properties.rb, line 16 def parse(node) node.xpath('*').each do |node_child| case node_child.name when 'alias' @alias = ValuedChild.new(:string, parent: self).parse(node_child) when 'tag' @tag = ValuedChild.new(:string, parent: self).parse(node_child) when 'lock' @lock = ValuedChild.new(:symbol, parent: self).parse(node_child) end end self end