Skip to content

Instantly share code, notes, and snippets.

@dmytrostriletskyi
Created April 13, 2019 11:27
Show Gist options
  • Save dmytrostriletskyi/dc26b5974d27d6bb2b7516d182d2e94d to your computer and use it in GitHub Desktop.
Save dmytrostriletskyi/dc26b5974d27d6bb2b7516d182d2e94d to your computer and use it in GitHub Desktop.
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