diff options
| author | Randy Morgan <[email protected]> | 2013-01-15 21:53:47 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2013-01-15 21:53:47 +0900 |
| commit | 40c85619885de848447479b99c08e5feaea89a90 (patch) | |
| tree | 61cebfceb3ac1d404e4893b376f9f3a5d72e3bd0 /lib/axlsx/drawing/hyperlink.rb | |
| parent | e14682fb484cd72ba5f479cc1f7d46a7a9fd6007 (diff) | |
| download | caxlsx-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.rb | 5 |
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] |
