class OoxmlParser::ParagraphPropertiesDefault

Class for parsing `w:pPrDefault` tags

Attributes

paragraph_properties[RW]

@return [ParagraphProperties] properties of run

Public Instance Methods

parse(node) click to toggle source

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

# File lib/ooxml_parser/docx_parser/docx_data/document_structure/styles/document_defaults/paragraph_properties_default.rb, line 12
def parse(node)
  node.xpath('*').each do |node_child|
    case node_child.name
    when 'pPr'
      @paragraph_properties = ParagraphProperties.new(parent: self).parse(node_child)
    end
  end
  self
end