Sha256: 1b692401fdf9bb27a5539da4792d509b3ed619535f97a4e1c3560766a0761506

Contents?: true

Size: 466 Bytes

Versions: 4

Compression:

Stored size: 466 Bytes

Contents

module OoxmlParser
  # Class for parsing `w:lang` object
  class Language < OOXMLDocumentObject
    # @return [String] value of language
    attr_accessor :value

    # Parse Language
    # @param [Nokogiri::XML:Node] node with Language
    # @return [Language] result of parsing
    def parse(node)
      node.attributes.each do |key, value|
        case key
        when 'val'
          @value = value.value.to_s
        end
      end
      self
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ooxml_parser-0.4.1 lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/language.rb
ooxml_parser-0.4.0 lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/language.rb
ooxml_parser-0.3.0 lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/language.rb
ooxml_parser-0.2.0 lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/language.rb