class_inject support for class methods