Currently reading a Ruby style guide and I came across an example:
def no_op; end
What is the purpose of empty body methods?
There are a number of reasons you might create an empty method:
undef foo
on public methods and surprising callers.There are possibly other reasons, too, but those are the ones that leapt to mind. Your mileage may vary.