UnitConverterRegistry#
- class glue.config.UnitConverterRegistry#
Bases:
DictRegistryStores unit converters, which are classes that can be used to determine conversion between units and find equivalent units to other units.
Methods Summary
__call__(label)This is provided so that registry instances can be used as decorators.
add(label, converter_cls)Add a new item to the registry.
Methods Documentation
- __call__(label)#
This is provided so that registry instances can be used as decorators. The decorators should add the decorated code object to the registry, and return the original function
- add(label, converter_cls)#
Add a new item to the registry.