Sha256: 41589d643f81fe688f59871850d942187c6363628fd0940145c13354e63fc484

Contents?: true

Size: 622 Bytes

Versions: 8

Compression:

Stored size: 622 Bytes

Contents

# frozen_string_literal: true

module OoxmlParser
  # Class for parsing `w:rFonts` object
  class RunFonts < OOXMLDocumentObject
    # @return [String] ascii font
    attr_accessor :ascii
    # @return [String] ascii theme value
    attr_accessor :ascii_theme

    # Parse RunFonts
    # @param [Nokogiri::XML:Node] node with RunFonts
    # @return [RunFonts] result of parsing
    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
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ooxml_parser-0.37.1 lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/run_fonts.rb
ooxml_parser-0.37.0 lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/run_fonts.rb
ooxml_parser-0.36.1 lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/run_fonts.rb
ooxml_parser-0.36.0 lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/run_fonts.rb
ooxml_parser-0.35.0 lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/run_fonts.rb
ooxml_parser-0.34.2 lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/run_fonts.rb
ooxml_parser-0.34.1 lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/run_fonts.rb
ooxml_parser-0.34.0 lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/run_fonts.rb