general code/comment clean up.

This commit is contained in:
tylerlaberge
2016-08-24 20:15:20 -04:00
parent afbf450613
commit 519592eaa5
4 changed files with 24 additions and 23 deletions
+2 -2
View File
@@ -38,11 +38,11 @@ class Visitor(metaclass=ABCMeta):
class Visitee(object):
"""
A base class for objects that wish to be able to visit a Visitor class.
A base class for objects that wish to be able to be visited by a Visitor class.
"""
def accept(self, visitor):
"""
Visit a visitor with this class instance.
Have a visitor visit this class instance.
@param visitor: The visitor to visit.
@type visitor: Visitor
+1 -1
View File
@@ -20,7 +20,7 @@ class Factory(object, metaclass=ABCMeta):
pass
class AbstractFactory(object):
class AbstractFactory(Factory):
"""
Abstract Factory Class.
"""
+3 -2
View File
@@ -7,9 +7,9 @@ class Prototype(object):
Prototype design pattern abstract class.
"""
def copy(self, **attributes):
def prototype(self, **attributes):
"""
Copy this object and optionally update attributes.
Copy the prototype this object and optionally update attributes.
@param attributes: Keyword arguments of any attributes you wish to update.
@return: A copy of this object with the updated attributes.
@@ -22,3 +22,4 @@ class Prototype(object):
setattr(obj, attribute, attributes[attribute])
return obj