UnitConverterRegistry¶
- class glue.config.UnitConverterRegistry[source]¶
Bases:
DictRegistry
Stores 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