From ee14c1bf5c6aaa96867eb4b90b510f91c3a614f8 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sat, 10 Jun 2023 11:48:13 +0200 Subject: Fix safe Style/ColonMethodCall offenses Caxlsx is using both `.` and `::`, 220 occurrences vs 280 to invoke methods on `Axlsx` module. This commit standardizes the approach towards `.`, which will also allow shorter lines. Performance is not affected ``` Comparison: Axlsx.validate: 8515252.3 i/s Axlsx::validate: 8512863.7 i/s - same-ish: difference falls within error ``` --- lib/axlsx/drawing/area_series.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/axlsx/drawing/area_series.rb') diff --git a/lib/axlsx/drawing/area_series.rb b/lib/axlsx/drawing/area_series.rb index 30bd9402..0e3d8928 100644 --- a/lib/axlsx/drawing/area_series.rb +++ b/lib/axlsx/drawing/area_series.rb @@ -52,19 +52,19 @@ module Axlsx # @see show_marker def show_marker=(v) - Axlsx::validate_boolean(v) + Axlsx.validate_boolean(v) @show_marker = v end # @see marker_symbol def marker_symbol=(v) - Axlsx::validate_marker_symbol(v) + Axlsx.validate_marker_symbol(v) @marker_symbol = v end # @see smooth def smooth=(v) - Axlsx::validate_boolean(v) + Axlsx.validate_boolean(v) @smooth = v end -- cgit v1.2.3