fire_on_each¶
- pypagate.fire_on_each(law: Law, *args, **kwarg)¶
Use as a decorator: If some specialization of a Law’s truthiness is True, call the decorated function.
- Parameters:
form – Execute the proceeding function if form evaluates to True at some point in time.
args – Additional positional arguments to pass to the decorated function.
kwargs – Additional keyword arguments to pass to the decorated function.