added external design pattern documentation links to structural patterns.

This commit is contained in:
tylerlaberge
2016-08-24 22:02:46 -04:00
parent 5af1a1ae38
commit e02d089b37
6 changed files with 18 additions and 10 deletions
+2 -9
View File
@@ -4,6 +4,8 @@ from abc import ABCMeta
class Proxy(object, metaclass=ABCMeta):
"""
Base Proxy class as part of the Proxy design pattern.
External Proxy Pattern documentation: U{https://en.wikipedia.org/wiki/Proxy_pattern}
"""
def __init__(self, subject):
"""
@@ -26,12 +28,3 @@ class Proxy(object, metaclass=ABCMeta):
elif not callable(getattr(self._subject, attr, None)) or not callable(getattr(self, attr, None)):
raise AttributeError('Subject and Proxy must follow same interface')