Sha256: 6c29d8d26e26efb5c7a501669806f0b32448e616a870e831cc6325ef87d55de7

Contents?: true

Size: 506 Bytes

Versions: 4

Compression:

Stored size: 506 Bytes

Contents

module OoxmlParser
  # Class for parsing `w:trHeight` object
  class TableRowHeight < OOXMLDocumentObject
    # @return [Integer] value of size
    attr_accessor :value

    # Parse TableRowHeight
    # @param [Nokogiri::XML:Node] node with TableRowHeight
    # @return [TableRowHeight] result of parsing
    def parse(node)
      node.attributes.each do |key, value|
        case key
        when 'val'
          @value = OoxmlSize.new(value.value.to_f)
        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/table/row/row/table_row_properties/table_row_height.rb
ooxml_parser-0.4.0 lib/ooxml_parser/common_parser/common_data/table/row/row/table_row_properties/table_row_height.rb
ooxml_parser-0.3.0 lib/ooxml_parser/common_parser/common_data/table/row/row/table_row_properties/table_row_height.rb
ooxml_parser-0.2.0 lib/ooxml_parser/common_parser/common_data/table/row/row/table_row_properties/table_row_height.rb