Package pypat :: Package structural :: Module decorator :: Class DecoratorSimple
[hide private]
[frames] | no frames]

Class DecoratorSimple

source code


A Base Decorator class for decorators with no arguments.

- External Usage Documentation: U{https://github.com/tylerlaberge/PyPatterns/wiki/Structural-Pattern-Usage}
- External Decorator Pattern documentation: U{https://en.wikipedia.org/wiki/Decorator_pattern}

Instance Methods [hide private]
 
__init__(self, func)
Initialize a new DecoratorSimple instance.
source code
Method Details [hide private]

__init__(self, func)
(Constructor)

source code 

Initialize a new DecoratorSimple instance.

Parameters:
  • func - The function being decorated.