Ruby

Ruby

Made by DeepSource

Purposeless method definition detected RB-LI1097

Bug risk
Minor

Method definitions that aren't used can be removed. Some examples of purposeless method definitions include empty constructors and methods just delegating to super.

Bad practice

def some_method
end

def some_other_method
  super
end

Recommended

def some_method
  do_something
end

def some_other_method
  super
  do_something_else
end