Skip to content

Instantly share code, notes, and snippets.

@osiro
Created November 16, 2012 02:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save osiro/4083297 to your computer and use it in GitHub Desktop.
Save osiro/4083297 to your computer and use it in GitHub Desktop.
How to make caipirinha
def name_of_the_drink ingredients
case ingredients
when 'cachaca + lime + ice + sugar'
return 'Caipirinha'
when 'voda + lime + ice + sugar'
return 'Caipiroska'
when 'lime + ice + sugar'
return 'Lemon Juice'
when 'ice + sugar'
return 'Sweet water'
when 'ice'
return 'Water'
when 'sugar'
return 'Diabetes'
else
return 'WTF!'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment