Sha256: 4c433986415511d1a1a091d848a81d91d4a68d37df158d70b083c20cbd7ba6b7
Contents?: true
Size: 727 Bytes
Versions: 3
Compression:
Stored size: 727 Bytes
Contents
# frozen_string_literal: true module Goldendocx module Images class Shape include Goldendocx::Element namespace :w tag :pict embeds_one :property, class_name: 'Goldendocx::Images::Properties::ShapeProperty', auto_build: true def initialize(**attributes) attributes.each do |name, value| send("#{name}=", value) if respond_to?("#{name}=") end end def width=(width) property.width = width if width end def height=(height) property.height = height if height end def relationship_id=(relationship_id) property.image_data.relationship_id = relationship_id if relationship_id end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
goldendocx-0.3.0 | lib/goldendocx/images/shape.rb |
goldendocx-0.2.3 | lib/goldendocx/images/shape.rb |
goldendocx-0.2.2 | lib/goldendocx/images/shape.rb |