class OoxmlParser::DocumentGrid
Class for parsing âdocGrid` tags
Attributes
Public Instance Methods
Source
# File lib/ooxml_parser/docx_parser/document_structure/page_properties/document_grid.rb, line 11 def parse(node) node.attributes.each do |key, value| case key when 'charSpace' @char_space = value.value when 'linePitch' @line_pitch = value.value.to_i when 'type' @type = value.value end end self end
Parse DocumentGrid
@param [Nokogiri::XML:Element] node with DocumentGrid
@return [DocumentGrid] value of DocumentGrid