summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/stylesheet/color.rb
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-04-05 17:37:28 +0200
committerGeremia Taglialatela <[email protected]>2023-04-06 09:55:31 +0200
commita802d1d179f5ab56b419e1b47e62885d72b5384d (patch)
tree70e8cc79f12a4e17efb6dc0126cc0ed204669142 /lib/axlsx/stylesheet/color.rb
parentb5d7a7a1917adb12e3ea04abe261a37f8aff7f56 (diff)
downloadcaxlsx-a802d1d179f5ab56b419e1b47e62885d72b5384d.tar.gz
caxlsx-a802d1d179f5ab56b419e1b47e62885d72b5384d.zip
Fix Layout/EmptyLineBetweenDefs offenses
``` rubocop --only Layout/EmptyLineBetweenDefs -a ```
Diffstat (limited to 'lib/axlsx/stylesheet/color.rb')
-rw-r--r--lib/axlsx/stylesheet/color.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/axlsx/stylesheet/color.rb b/lib/axlsx/stylesheet/color.rb
index 32f18063..d7168ee7 100644
--- a/lib/axlsx/stylesheet/color.rb
+++ b/lib/axlsx/stylesheet/color.rb
@@ -47,6 +47,7 @@ module Axlsx
# @see auto
def auto=(v) Axlsx::validate_boolean v; @auto = v end
+
# @see color
def rgb=(v)
Axlsx::validate_string(v)
@@ -56,6 +57,7 @@ module Axlsx
raise ArgumentError, "Invalid color rgb value: #{v}." unless v.match(/[0-9A-F]{8}/)
@rgb = v
end
+
# @see tint
def tint=(v) Axlsx::validate_float v; @tint = v end