Muscat.Helpers.Decorators module¶
- froze_it(cls)[source]¶
Decorator to make the class immutable (no more attributes can be added after initialization)
For the moment if a class is frozen no heritage is possible. The user must unfrozen the class before adding new attributes.
self.UnFrozen()
the module level attribute useFroze_itDecorator is use to determine if this decorator must be applied.