removed proxy, bridge, template, and strategy patterns as they were too abstract to offer much use.
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
from abc import ABCMeta, abstractmethod
|
||||
|
||||
|
||||
class Strategy(object, metaclass=ABCMeta):
|
||||
"""
|
||||
An abstract Strategy class.
|
||||
All strategies should inherit this class.
|
||||
|
||||
External Strategy Pattern documentation: U{https://en.wikipedia.org/wiki/Strategy_pattern}
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def __call__(self, *args, **kwargs):
|
||||
"""
|
||||
Abstract method that must be overridden.
|
||||
The overridden method should execute the classes strategy.
|
||||
"""
|
||||
pass
|
||||
@@ -1,15 +0,0 @@
|
||||
from abc import ABCMeta, abstractmethod
|
||||
|
||||
|
||||
class Template(object, metaclass=ABCMeta):
|
||||
"""
|
||||
Abstract Template class as part of the Template design pattern.
|
||||
|
||||
External Template Design Pattern Documentation: U{https://en.wikipedia.org/wiki/Template_method_pattern}
|
||||
"""
|
||||
@abstractmethod
|
||||
def go(self):
|
||||
"""
|
||||
Abstract method to call the concrete templates methods.
|
||||
"""
|
||||
pass
|
||||
Reference in New Issue
Block a user