document generate_class_methods