Method: Axlsx::WorksheetHyperlink#relationship
- Defined in:
- lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb
#relationship ⇒ Relationship
The relationship instance for this hyperlink.
A relationship is only required if @target is :external. If not, this method will simply return nil.
52 53 54 55 |
# File 'lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb', line 52 def relationship return unless @target == :external Relationship.new(self, HYPERLINK_R, location, :target_mode => :External) end |