Sha256: 20e561bbdb959142667609d5ab06a570a6623b5a8d06ae416ce44538acf7cc38
Contents?: true
Size: 536 Bytes
Versions: 2
Compression:
Stored size: 536 Bytes
Contents
require_relative 'line_end/line_size' module OoxmlParser class LineEnd < OOXMLDocumentObject attr_accessor :type, :length, :width def self.parse(line_end_node) line_end = LineEnd.new line_end_node.attributes.each do |key, value| case key when 'type' line_end.type = value.value.to_sym when 'w' line_end.width = LineSize.parse(value.value) when 'len' line_end.length = LineSize.parse(value.value) end end line_end end end end
Version data entries
2 entries across 2 versions & 1 rubygems