Sha256: ea08a7f1f665013f4c96754eeb52db706b4bd4de727938bed5491d258c4950eb
Contents?: true
Size: 572 Bytes
Versions: 2
Compression:
Stored size: 572 Bytes
Contents
module OoxmlParser class FillRectangle attr_accessor :left, :top, :right, :bottom def self.parse(fill_rectangle_node) fill_rectangle = FillRectangle.new fill_rectangle_node.attributes.each do |key, value| case key when 'b' fill_rectangle.bottom = value.value.to_i when 't' fill_rectangle.top = value.value.to_i when 'l' fill_rectangle.left = value.value.to_i when 'r' fill_rectangle.right = value.value.to_i end end fill_rectangle end end end
Version data entries
2 entries across 2 versions & 1 rubygems