(self, func, path)
Args:
            func: Function to be called at the end of the path.
            path: If path is an empty string, assign function
Args:
            func: Function to be called at the end of the path.
            path: If path is an empty string, assign function
Args : func : Function to be called at the end of the path . path : If path is an empty string assign function
def __init__(self, func, path):
        """
        Args:
            func: Function to be called at the end of the path.
            path: If path is an empty string, assign function
        """
        if path:
            self.add(func, path)
            self._func = None
        else:
            self._func = func
def __init__ ( self , func , path ) : if path : self . add ( func , path ) self . _func = None else : self . _func = func