Sha256: 9e820b45ff3285a6adb450de4245176f0893d1e59fae81a13c101f9a3b55eace
Contents?: true
Size: 854 Bytes
Versions: 3
Compression:
Stored size: 854 Bytes
Contents
module OoxmlParser # Class for parsing `w:sdtPr` tags class SDTProperties < OOXMLDocumentObject # @return [ValuedChild] alias value attr_reader :alias # @return [ValuedChild] tag value attr_reader :tag # @return [ValuedChild] Locking Setting attr_reader :lock # Parse SDTProperties object # @param node [Nokogiri::XML:Element] node to parse # @return [SDTProperties] result of parsing 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 end end
Version data entries
3 entries across 3 versions & 1 rubygems