class OoxmlParser::DocProperties

Class for parsing `wp:docP` tags

Attributes

description[RW]

@return [String] description property

title[RW]

@return [String] title property

Public Instance Methods

parse(node) click to toggle source

Parse DocProperties object @param node [Nokogiri::XML:Element] node to parse @return [DocProperties] result of parsing

# File lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/docx_drawing/doc_properties.rb, line 14
def parse(node)
  node.attributes.each do |key, value|
    case key
    when 'title'
      @title = value.value
    when 'descr'
      @description = value.value
    end
  end
  self
end