class OoxmlParser::DocumentGrid

Class for parsing ‘docGrid` tags

Attributes

char_space[RW]
line_pitch[RW]
type[RW]

Public Instance Methods

parse(node) click to toggle source

Parse DocumentGrid @param [Nokogiri::XML:Element] node with DocumentGrid @return [DocumentGrid] value of DocumentGrid

# 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