Super!

Posted by Matt Williams

One common mistake people make with ruby's method_missing is to leave out a super. This means that if you don't handle all the cases which could cause an invocation of method_missing then the exception will be lost. So, always include super, unless you have a good reason not to do so.
Comments

Leave a response