Skip to content

Instantly share code, notes, and snippets.

@francois
Created March 1, 2011 21:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save francois/849890 to your computer and use it in GitHub Desktop.
whitelist = {
"english" => "English, ***, do you speak it?",
"french" => "Baguette!",
"dutch" => "I only smoke *** when it’s free.",
}
puts whitelist.fetch(input) { "Dunno" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment