Decorator to add a function to a store.
(func)
| 72 | """Returns a decorator which stores the decorated function under `name` with description `desc`.""" |
| 73 | |
| 74 | def deco(func): |
| 75 | """Decorator to add a function to a store.""" |
| 76 | return self.add(name, desc, func) |
| 77 | |
| 78 | return deco |
| 79 |