Package pypat :: Package behavioral :: Module command :: Class Receiver
[hide private]
[frames] | no frames]

Class Receiver

source code


Abstract receiver class as part of the Command pattern.

- External Usage documentation: U{https://github.com/tylerlaberge/PyPatterns/wiki/Behavioral-Pattern-Usage}
- External Command Pattern documentation: U{https://en.wikipedia.org/wiki/Command_pattern}

Instance Methods [hide private]
 
action(self, name, *args, **kwargs)
Delegates which method to be called for a desired action.
source code
Method Details [hide private]

action(self, name, *args, **kwargs)

source code 

Delegates which method to be called for a desired action.

Parameters:
  • name (str) - The name of the action to execute.
  • args - Any arguments for the action.
  • kwargs - Any keyword arguments for the action.