Sha256: 3f6ae7f4d88db35a835320f14b47f9e92948f93c7b82bf3e3d6d5fcd8c7822d4
Contents?: true
Size: 617 Bytes
Versions: 4
Compression:
Stored size: 617 Bytes
Contents
module OoxmlParser # Class for parsing `wp:docP` tags class DocProperties < OOXMLDocumentObject # @return [String] title property attr_accessor :title # @return [String] description property attr_accessor :description # Parse DocProperties object # @param node [Nokogiri::XML:Element] node to parse # @return [DocProperties] result of parsing 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 end end
Version data entries
4 entries across 4 versions & 1 rubygems