summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/rels/relationships.rb
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-04-08 11:53:12 +0200
committerGeremia Taglialatela <[email protected]>2023-04-08 11:53:12 +0200
commit55526805cf28cc91a22df5811b26cd23bdefa8d3 (patch)
tree2cbc6403b385078b0ed5e275c49f0c60522bdd16 /lib/axlsx/rels/relationships.rb
parentacf00d356494ef504c3de0e4a0db6b25f2bd7636 (diff)
downloadcaxlsx-55526805cf28cc91a22df5811b26cd23bdefa8d3.tar.gz
caxlsx-55526805cf28cc91a22df5811b26cd23bdefa8d3.zip
Fix space-related offenses
- Layout/SpaceAfterComma - Layout/SpaceAroundEqualsInParameterDefault - Layout/SpaceAroundOperators - Layout/SpaceBeforeBlockBraces - Layout/SpaceInsideBlockBraces - Layout/SpaceInsideHashLiteralBraces - Layout/SpaceInsideParens
Diffstat (limited to 'lib/axlsx/rels/relationships.rb')
-rw-r--r--lib/axlsx/rels/relationships.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/rels/relationships.rb b/lib/axlsx/rels/relationships.rb
index 8f3b62cc..686059fb 100644
--- a/lib/axlsx/rels/relationships.rb
+++ b/lib/axlsx/rels/relationships.rb
@@ -13,7 +13,7 @@ require 'axlsx/rels/relationship.rb'
# @see Relationship#source_obj
# @return [Relationship]
def for(source_obj)
- find{ |rel| rel.source_obj == source_obj }
+ find { |rel| rel.source_obj == source_obj }
end
# serialize relationships
@@ -22,7 +22,7 @@ require 'axlsx/rels/relationship.rb'
def to_xml_string(str = '')
str << '<?xml version="1.0" encoding="UTF-8"?>'
str << ('<Relationships xmlns="' << RELS_R << '">')
- each{ |rel| rel.to_xml_string(str) }
+ each { |rel| rel.to_xml_string(str) }
str << '</Relationships>'
end
end