diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-06-13 16:15:27 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-13 16:15:27 +0200 |
| commit | e74c75b95d39fb51512387031e79f50e52a5874a (patch) | |
| tree | 6b8ccc2cea0cbdc9c9255e986daf2c7dcbe0d4c5 /lib/axlsx/stylesheet/gradient_fill.rb | |
| parent | 63a58ba6e35f4807710ba5d8935400d7e502cb30 (diff) | |
| parent | dd391d24da8e29525fe2c86ea7c32c1f76cfa938 (diff) | |
| download | caxlsx-e74c75b95d39fb51512387031e79f50e52a5874a.tar.gz caxlsx-e74c75b95d39fb51512387031e79f50e52a5874a.zip | |
Merge pull request #283 from tagliala/chore/lambda-style
Fix safe Style/Lambda offenses
Diffstat (limited to 'lib/axlsx/stylesheet/gradient_fill.rb')
| -rw-r--r-- | lib/axlsx/stylesheet/gradient_fill.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/stylesheet/gradient_fill.rb b/lib/axlsx/stylesheet/gradient_fill.rb index ff6903a5..508c91a2 100644 --- a/lib/axlsx/stylesheet/gradient_fill.rb +++ b/lib/axlsx/stylesheet/gradient_fill.rb @@ -86,7 +86,7 @@ module Axlsx # validates that the value provided is between 0.0 and 1.0 def validate_format_percentage(name, value) - DataTypeValidator.validate name, Float, value, lambda { |arg| arg >= 0.0 && arg <= 1.0 } + DataTypeValidator.validate name, Float, value, ->(arg) { arg >= 0.0 && arg <= 1.0 } end # Serializes the object |
