Skip to content

Instantly share code, notes, and snippets.

@Anthonyhawkins
Created June 8, 2021 17:57
Show Gist options
  • Save Anthonyhawkins/4910f45f036503ddfadbd8b5b65edc0a to your computer and use it in GitHub Desktop.
Save Anthonyhawkins/4910f45f036503ddfadbd8b5b65edc0a to your computer and use it in GitHub Desktop.
class Include(object):
@staticmethod
def when(expression, if_block, else_block={}):
return if_block if expression else else_block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment