class OoxmlParser::FieldChar

Class for parsing ‘w:fldChar` object

Attributes

type[RW]

@return [Symbol] type of field char

Public Instance Methods

parse(node) click to toggle source

Parse FieldChar @param [Nokogiri::XML:Node] node with FieldChar @return [FieldChar] result of parsing

# File lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/field_char.rb, line 12
def parse(node)
  node.attributes.each do |key, value|
    case key
    when 'fldCharType'
      @type = value.value.to_sym
    end
  end
  self
end