diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-06-12 09:42:32 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-12 09:42:32 +0200 |
| commit | 506415434e1f5584001ab79ac9f028e5ba228ef9 (patch) | |
| tree | 63a893a73f1cc51003edf218fed178bb93c604d7 /lib/axlsx/drawing/num_val.rb | |
| parent | cfb516062de3d0725b3245cc328f96d702d662d3 (diff) | |
| parent | ee14c1bf5c6aaa96867eb4b90b510f91c3a614f8 (diff) | |
| download | caxlsx-506415434e1f5584001ab79ac9f028e5ba228ef9.tar.gz caxlsx-506415434e1f5584001ab79ac9f028e5ba228ef9.zip | |
Merge pull request #281 from tagliala/chore/fix-colon-method-call
Fix safe Style/ColonMethodCall offenses
Diffstat (limited to 'lib/axlsx/drawing/num_val.rb')
| -rw-r--r-- | lib/axlsx/drawing/num_val.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/drawing/num_val.rb b/lib/axlsx/drawing/num_val.rb index 862d22ae..a945fb65 100644 --- a/lib/axlsx/drawing/num_val.rb +++ b/lib/axlsx/drawing/num_val.rb @@ -18,13 +18,13 @@ module Axlsx # @see format_code def format_code=(v) - Axlsx::validate_string(v) + Axlsx.validate_string(v) @format_code = v end # serialize the object def to_xml_string(idx, str = +'') - Axlsx::validate_unsigned_int(idx) + Axlsx.validate_unsigned_int(idx) unless v.to_s.empty? str << '<c:pt idx="' << idx.to_s << '" formatCode="' << format_code << '"><c:v>' << v.to_s << '</c:v></c:pt>' end |
