Ruby

Ruby

Made by DeepSource

Unused block argument detected RB-LI1073

Bug risk
Minor
Autofix

If an unused block argument is intended, it should be prefixed with an underscore.

Bad practice

define_method(:foo) do |bar|
  puts :baz
end

Recommended

define_method(:foo) do |_bar|
  puts :baz
end