summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/drawing/marker.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/drawing/marker.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/drawing/marker.rb')
-rw-r--r--lib/axlsx/drawing/marker.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/axlsx/drawing/marker.rb b/lib/axlsx/drawing/marker.rb
index 53a52dd1..a4933c33 100644
--- a/lib/axlsx/drawing/marker.rb
+++ b/lib/axlsx/drawing/marker.rb
@@ -10,7 +10,7 @@ module Axlsx
# @option options [Integer] colOff
# @option options [Integer] row
# @option options [Integer] rowOff
- def initialize(options={})
+ def initialize(options = {})
@col, @colOff, @row, @rowOff = 0, 0, 0, 0
parse_options options
end
@@ -45,7 +45,7 @@ module Axlsx
# or an Array.
# @param row the row of the marker. This is ignored if the col parameter is a Cell or
# String or Array.
- def coord(col, row=0)
+ def coord(col, row = 0)
coordinates = parse_coord_args(col, row)
self.col = coordinates[0]
self.row = coordinates[1]
@@ -64,7 +64,7 @@ module Axlsx
# handles multiple inputs for setting the position of a marker
# @see Chart#start_at
- def parse_coord_args(x, y=0)
+ def parse_coord_args(x, y = 0)
if x.is_a?(String)
x, y = *Axlsx::name_to_indices(x)
end