lib/axlsx/drawing/hyperlink.rb in axlsx-1.3.4 vs lib/axlsx/drawing/hyperlink.rb in axlsx-1.3.5
- old
+ new
@@ -81,9 +81,14 @@
# Text to show when you mouse over the hyperlink. If you do not set this, the href property will be shown.
# @return [String]
attr_accessor :tooltip
+ # Returns a relationship object for this hyperlink
+ # @return [Axlsx::Relationship]
+ def relationship
+ Relationship.new(HYPERLINK_R, href, :target_mode => :External)
+ end
# Serializes the object
# @param [String] str
# @return [String]
def to_xml_string(str = '')
str << '<a:hlinkClick '