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 ``` --- test/drawing/tc_d_lbls.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/drawing/tc_d_lbls.rb') diff --git a/test/drawing/tc_d_lbls.rb b/test/drawing/tc_d_lbls.rb index 9bb2d4ba..c3172326 100644 --- a/test/drawing/tc_d_lbls.rb +++ b/test/drawing/tc_d_lbls.rb @@ -53,7 +53,7 @@ class TestDLbls < Test::Unit::TestCase doc = Nokogiri::XML(str) Axlsx.instance_values_for(@d_lbls).each do |name, value| - assert(doc.xpath("//c:#{Axlsx::camel(name, false)}[@val='#{value}']"), "#{name} is properly serialized") + assert(doc.xpath("//c:#{Axlsx.camel(name, false)}[@val='#{value}']"), "#{name} is properly serialized") end end end -- cgit v1.2.3