Custom rules now also accept class methods

...thanks to Dan!