Skip to content

Instantly share code, notes, and snippets.

@Epigene
Created October 2, 2015 06:46
Show Gist options
  • Save Epigene/311c7dba4c9440d56a15 to your computer and use it in GitHub Desktop.
Save Epigene/311c7dba4c9440d56a15 to your computer and use it in GitHub Desktop.
A glorious antipattern
# simple
def test(arg)
arg ?
"true" :
"false"
end
# nested
def test2(arg1, arg2)
arg1 ?
arg2 ? "true" :
"false1" :
"false2"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment