summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/stylesheet/font.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/stylesheet/font.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/stylesheet/font.rb')
-rw-r--r--lib/axlsx/stylesheet/font.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/axlsx/stylesheet/font.rb b/lib/axlsx/stylesheet/font.rb
index 9ce5ae4a..0f432d58 100644
--- a/lib/axlsx/stylesheet/font.rb
+++ b/lib/axlsx/stylesheet/font.rb
@@ -20,7 +20,7 @@ module Axlsx
# @option options [Boolean] extend
# @option options [Color] color
# @option options [Integer] sz
- def initialize(options={})
+ def initialize(options = {})
parse_options options
end
@@ -139,9 +139,9 @@ module Axlsx
# @see extend
def extend=(v) Axlsx::validate_boolean v; @extend = v end
# @see color
- def color=(v) DataTypeValidator.validate "Font.color", Color, v; @color=v end
+ def color=(v) DataTypeValidator.validate "Font.color", Color, v; @color = v end
# @see sz
- def sz=(v) Axlsx::validate_unsigned_int v; @sz=v end
+ def sz=(v) Axlsx::validate_unsigned_int v; @sz = v end
# Serializes the object
# @param [String] str