implemented template design pattern

This commit is contained in:
tylerlaberge
2016-08-13 16:59:08 -04:00
parent 53d1c22687
commit 28737fabfb
2 changed files with 94 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
from abc import ABCMeta, abstractmethod
class Template(object, metaclass=ABCMeta):
"""
Abstract Template class as part of the Template design pattern.
"""
@abstractmethod
def go(self):
"""
Abstract method to call the concrete templates methods.
"""
pass