Define a class with a given set of attributes.

        :param klass: The class
        :type klass: class

        :param name: The short name
        :type name: str

def define(self, klass, name="default"):
        """
        Define a class with a given set of attributes.

        :param klass: The class
        :type klass: class

        :param name: The short name
        :type name: str
        """

        def decorate(func):
            @wraps(func)
            def wrapped(*args, **kwargs):
                return func(*args, **kwargs)

            self.register(klass, func, name=name)

            return wrapped

        return decorate