class OoxmlParser::FootnoteProperties
Class for parsing `footnotePr` tags
Attributes
numbering_format[RW]
@return [NumberingFormat] format of numbering
numbering_restart[RW]
@return [ValuedChild] type of numbering restart
numbering_start[RW]
@return [ValuedChild] value of numbering start
position[RW]
@return [ValuedChild] position of footnote
Public Instance Methods
parse(node)
click to toggle source
Parse FootnoteProperties
@param [Nokogiri::XML:Element] node with FootnoteProperties
@return [FootnoteProperties] value of FootnoteProperties
# File lib/ooxml_parser/docx_parser/docx_data/document_structure/page_properties/footnote_properties.rb, line 18 def parse(node) node.xpath('*').each do |node_child| case node_child.name when 'numFmt' @numbering_format = ValuedChild.new(:symbol, parent: self).parse(node_child) when 'numRestart' @numbering_restart = ValuedChild.new(:symbol, parent: self).parse(node_child) when 'numStart' @numbering_start = ValuedChild.new(:integer, parent: self).parse(node_child) when 'pos' @position = ValuedChild.new(:symbol, parent: self).parse(node_child) end end self end