general code/comment clean up.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -20,7 +20,7 @@ class Factory(object, metaclass=ABCMeta):
|
||||
pass
|
||||
|
||||
|
||||
class AbstractFactory(object):
|
||||
class AbstractFactory(Factory):
|
||||
"""
|
||||
Abstract Factory Class.
|
||||
"""
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user