Skip to content

Instantly share code, notes, and snippets.

@wheeyls
Created January 25, 2013 21:35
Show Gist options
  • Save wheeyls/4638105 to your computer and use it in GitHub Desktop.
Save wheeyls/4638105 to your computer and use it in GitHub Desktop.
# don't tell me
# don't tell me not to tell you
# don't tell me not to tell you not to tell me
# don't tell me not to tell you not to tell me not to tell you
def dont(subject, times)
"Don't" + tell_me(subject, times)
end
def tell_me(subject, times)
return " tell #{subject} what to do" if times == 1
" tell #{subject} not to" + tell_me(subject == 'me' ? 'you' : 'me', times - 1)
end
dont("me", 10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment