summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/drawing/hyperlink.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2013-01-15 21:53:47 +0900
committerRandy Morgan <[email protected]>2013-01-15 21:53:47 +0900
commit40c85619885de848447479b99c08e5feaea89a90 (patch)
tree61cebfceb3ac1d404e4893b376f9f3a5d72e3bd0 /lib/axlsx/drawing/hyperlink.rb
parente14682fb484cd72ba5f479cc1f7d46a7a9fd6007 (diff)
downloadcaxlsx-40c85619885de848447479b99c08e5feaea89a90.tar.gz
caxlsx-40c85619885de848447479b99c08e5feaea89a90.zip
Refactored relationship management for drawings
This should fix #160
Diffstat (limited to 'lib/axlsx/drawing/hyperlink.rb')
-rw-r--r--lib/axlsx/drawing/hyperlink.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/axlsx/drawing/hyperlink.rb b/lib/axlsx/drawing/hyperlink.rb
index aa763e1f..e886f766 100644
--- a/lib/axlsx/drawing/hyperlink.rb
+++ b/lib/axlsx/drawing/hyperlink.rb
@@ -83,6 +83,11 @@ module Axlsx
# @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]