lib/axlsx/drawing/pic.rb in axlsx-1.3.4 vs lib/axlsx/drawing/pic.rb in axlsx-1.3.5

- old
+ new

@@ -105,9 +105,15 @@ # The relational id withing the drawing's relationships def id @anchor.drawing.charts.size + @anchor.drawing.images.index(self) + 1 end + # Returns a relationship object for this object + # @return Axlsx::Relationship + def relationship + Relationship.new(IMAGE_R, "../#{pn}") + end + # providing access to the anchor's width attribute # @param [Integer] v # @see OneCellAnchor.width def width return unless @anchor.is_a?(OneCellAnchor)