class OoxmlParser::RunFonts

Class for parsing ‘w:rFonts` object

Attributes

ascii[RW]

@return [String] ascii font

ascii_theme[RW]

@return [String] ascii theme value

Public Instance Methods

parse(node) click to toggle source

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

# File lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/run_fonts.rb, line 14
def parse(node)
  node.attributes.each do |key, value|
    case key
    when 'ascii'
      @ascii = value.to_s
    when 'asciiTheme'
      @ascii_theme = value.to_s
    end
  end
  self
end