summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/drawing/chart.rb
diff options
context:
space:
mode:
authorZsolt Kozaroczy <[email protected]>2023-06-13 16:15:27 +0200
committerGitHub <[email protected]>2023-06-13 16:15:27 +0200
commite74c75b95d39fb51512387031e79f50e52a5874a (patch)
tree6b8ccc2cea0cbdc9c9255e986daf2c7dcbe0d4c5 /lib/axlsx/drawing/chart.rb
parent63a58ba6e35f4807710ba5d8935400d7e502cb30 (diff)
parentdd391d24da8e29525fe2c86ea7c32c1f76cfa938 (diff)
downloadcaxlsx-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/drawing/chart.rb')
-rw-r--r--lib/axlsx/drawing/chart.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/drawing/chart.rb b/lib/axlsx/drawing/chart.rb
index 1e0b3fb6..c84e5cba 100644
--- a/lib/axlsx/drawing/chart.rb
+++ b/lib/axlsx/drawing/chart.rb
@@ -160,7 +160,7 @@ module Axlsx
# The style for the chart.
# see ECMA Part 1 ยง21.2.2.196
# @param [Integer] v must be between 1 and 48
- def style=(v) DataTypeValidator.validate "Chart.style", Integer, v, lambda { |arg| arg >= 1 && arg <= 48 }; @style = v; end
+ def style=(v) DataTypeValidator.validate "Chart.style", Integer, v, ->(arg) { arg >= 1 && arg <= 48 }; @style = v; end
# @see legend_position
def legend_position=(v) RestrictionValidator.validate "Chart.legend_position", [:b, :l, :r, :t, :tr], v; @legend_position = v; end