diff options
| author | Geremia Taglialatela <[email protected]> | 2023-04-05 17:37:28 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-04-06 09:55:31 +0200 |
| commit | a802d1d179f5ab56b419e1b47e62885d72b5384d (patch) | |
| tree | 70e8cc79f12a4e17efb6dc0126cc0ed204669142 /lib/axlsx/stylesheet | |
| parent | b5d7a7a1917adb12e3ea04abe261a37f8aff7f56 (diff) | |
| download | caxlsx-a802d1d179f5ab56b419e1b47e62885d72b5384d.tar.gz caxlsx-a802d1d179f5ab56b419e1b47e62885d72b5384d.zip | |
Fix Layout/EmptyLineBetweenDefs offenses
```
rubocop --only Layout/EmptyLineBetweenDefs -a
```
Diffstat (limited to 'lib/axlsx/stylesheet')
| -rw-r--r-- | lib/axlsx/stylesheet/color.rb | 2 | ||||
| -rw-r--r-- | lib/axlsx/stylesheet/font.rb | 2 |
2 files changed, 4 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 diff --git a/lib/axlsx/stylesheet/font.rb b/lib/axlsx/stylesheet/font.rb index 8a52c810..4011f888 100644 --- a/lib/axlsx/stylesheet/font.rb +++ b/lib/axlsx/stylesheet/font.rb @@ -119,6 +119,7 @@ module Axlsx def b=(v) Axlsx::validate_boolean v; @b = v end # @see i def i=(v) Axlsx::validate_boolean v; @i = v end + # @see u def u=(v) v = :single if (v == true || v == 1 || v == :true || v == 'true') @@ -126,6 +127,7 @@ module Axlsx Axlsx::validate_cell_u v @u = v end + # @see strike def strike=(v) Axlsx::validate_boolean v; @strike = v end # @see outline |
