<filename>_solutions/design-patterns/decorator/decorator_cls_b.py

class Abspath:
    def __init__(self, func):
        self._func = func

    def __call__(self, file):
        abspath = Path(file).absolute()
        return self._func(abspath)


<filename>_solutions/design-patterns/decorator/decorator_cls_b.py

class Abspath:
    def __init__(self, func):
        self._func = func

    def __call__(self, file):
        abspath = Path(file).absolute()
        return self._func(abspath)

