Created
April 13, 2019 11:27
-
-
Save dmytrostriletskyi/dc26b5974d27d6bb2b7516d182d2e94d 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
from accessify import protected | |
class Car: | |
@protected | |
def start_engine(self): | |
return "Engine's sound." | |
def run(self): | |
return self.start_engine() | |
if __name__ == '__main__': | |
car = Car() | |
assert "Engine's sound." == car.run() | |
car.start_engine() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment