Pattern: Missing use of respond_to_missing?
Issue: -
This rule checks for the presence of method_missing
without also defining respond_to_missing?
.
#bad
def method_missing(name, *args)
# ...
end
#good
def respond_to_missing?(name, include_private)
# ...
end
def method_missing(name, *args)
# ...
end