adorn.unit.template module
Subclass of Complex
to specify alternate construction of a class
- class adorn.unit.template.Template
Bases:
adorn.unit.complex.Complex
Subclass of
Complex
to specify alternate construction of a classThis construct allows for you to specify a different way of constructing an instance of
Complex
, without having to add an additional method to the given class ofComplex
. This is especially useful for creating configurable constructs, that reduces parameters, while still covering most use cases.- property params: adorn.params.Params
Configuration for the object being shadowed