Method: Axlsx::WorksheetHyperlink#relationship

Defined in:
lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb

#relationshipRelationship

The relationship instance for this hyperlink. A relationship is only required if @target is :external. If not, this method will simply return nil.

See Also:



53
54
55
56
57
# File 'lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb', line 53

def relationship
  return unless @target == :external

  Relationship.new(self, HYPERLINK_R, location, target_mode: :External)
end