16 lines
389 B
Python
16 lines
389 B
Python
from abc import ABCMeta
|
|
|
|
|
|
class Bridge(object, metaclass=ABCMeta):
|
|
"""
|
|
Base Bridge class as part of the Bridge design pattern.
|
|
"""
|
|
def __init__(self, implementor):
|
|
"""
|
|
Initialize a new Bridge instance.
|
|
|
|
@param implementor: The implementor that concrete classes should call upon to do some action.
|
|
"""
|
|
self.implementor = implementor
|
|
|