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/drawing/hyperlink.rb | |
| parent | cbcf330ea266c96861e4029aaea6be1063862900 (diff) | |
| download | caxlsx-42594ea9e486d3b0fe9c84ba1fc59140bb59439f.tar.gz caxlsx-42594ea9e486d3b0fe9c84ba1fc59140bb59439f.zip | |
Use Ruby 1.9 hash syntax
Diffstat (limited to 'lib/axlsx/drawing/hyperlink.rb')
| -rw-r--r-- | lib/axlsx/drawing/hyperlink.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/drawing/hyperlink.rb b/lib/axlsx/drawing/hyperlink.rb index 0d9eb4f7..acf3b8d2 100644 --- a/lib/axlsx/drawing/hyperlink.rb +++ b/lib/axlsx/drawing/hyperlink.rb @@ -86,14 +86,14 @@ module Axlsx # The relationship object for this hyperlink. # @return [Relationship] def relationship - Relationship.new(self, HYPERLINK_R, href, :target_mode => :External) + Relationship.new(self, HYPERLINK_R, href, target_mode: :External) end # Serializes the object # @param [String] str # @return [String] def to_xml_string(str = +'') - serialized_tag 'a:hlinkClick', str, { :'r:id' => relationship.Id, :'xmlns:r' => XML_NS_R } + serialized_tag 'a:hlinkClick', str, { 'r:id': relationship.Id, 'xmlns:r': XML_NS_R } end end end |
