<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_textop(class_or_func):
 """Decorator to declare custom function or custom class as a new textops op the custom function/class will receive the whole raw input text at once. Examples: 'hellohellohello' 'textops is cool.' """

    if isinstance(class_or_func,type):
        op = class_or_func
    else:
        op = type(class_or_func.__name__,(TextOp,), {'fn':staticmethod(class_or_func)})

    setattr(textops.ops,class_or_func.__name__,op)
    return op