diff options
| author | Geremia Taglialatela <[email protected]> | 2023-05-31 11:04:13 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-05-31 11:04:13 +0200 |
| commit | 42594ea9e486d3b0fe9c84ba1fc59140bb59439f (patch) | |
| tree | 1a666e99ccebefa4be1df5655b96f9f1337df794 /lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb | |
| parent | cbcf330ea266c96861e4029aaea6be1063862900 (diff) | |
| download | caxlsx-42594ea9e486d3b0fe9c84ba1fc59140bb59439f.tar.gz caxlsx-42594ea9e486d3b0fe9c84ba1fc59140bb59439f.zip | |
Use Ruby 1.9 hash syntax
Diffstat (limited to 'lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb')
| -rw-r--r-- | lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb b/lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb index c4cb8983..80f7ba09 100644 --- a/lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb +++ b/lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb @@ -52,7 +52,7 @@ module Axlsx def relationship return unless @target == :external - Relationship.new(self, HYPERLINK_R, location, :target_mode => :External) + Relationship.new(self, HYPERLINK_R, location, target_mode: :External) end # Seralize the object @@ -69,7 +69,7 @@ module Axlsx # r:id should only be specified for external targets. # @return [Hash] def location_or_id - @target == :external ? { :"r:id" => relationship.Id } : { :location => Axlsx::coder.encode(location) } + @target == :external ? { "r:id": relationship.Id } : { location: Axlsx::coder.encode(location) } end end end |
