Also, I reject the argument that
responds_to?
checking is buggy because some people writemethod_missing
magic that breaks it. I reject the argument because I reject as buggy any code such that objecto
responds to methodm
buto.responds_to?(:m) => false
. If you implement your ownmethod_missing
for a class, you should almost always implement your ownresponds_to?
as well.