register_method
register_method(name, factory)Make a method constructible by name, for configuration files and CLIs.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| name | str | The name to register, unique across the library. | required |
| factory | Callable[…, Method] | Callable returning a method. | required |
Raises
| Name | Type | Description |
|---|---|---|
| ValueError | The name is already registered. |