Add $methods method to NSObject