Created
January 30, 2016 16:17
-
-
Save joedougherty/db50a6ef6f5f3e8f1453 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Adapter: | |
| def __init__(self, object, **adapted_method): | |
| self.object = object | |
| self.__dict__.update(adapted_method) | |
| def __getattr__(self, attr): | |
| return getattr(self.object, attr) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment