Sha256: 7c37f23656f702512630bb3fd407610223082ab553f802c13abb61872607d437

Contents?: true

Size: 379 Bytes

Versions: 2

Compression:

Stored size: 379 Bytes

Contents

# Class for describing Line Size
module OoxmlParser
  class LineSize
    # Parse LineSize
    # @param [Nokogiri::XML:Attr] node with LineSize
    # @return [Symbol] value of LineSize
    def self.parse(node)
      case node
      when 'lg'
        :large
      when 'med'
        :medium
      when 'sm'
        :small
      else
        node.to_sym
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ooxml_parser-0.1.2 lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/shape/shape_properties/line/line_end/line_size.rb
ooxml_parser-0.1.1 lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/shape/shape_properties/line/line_end/line_size.rb