Register method definition in front of private_class_method.