Skip to content

Instantly share code, notes, and snippets.

@patmaddox
Created July 25, 2017 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patmaddox/0197807f5d927eebf38cbdde1f5bc10c to your computer and use it in GitHub Desktop.
Save patmaddox/0197807f5d927eebf38cbdde1f5bc10c to your computer and use it in GitHub Desktop.
def foo(f)
case f
when /funky/
puts "so funky"
when /chicken/
puts "so chicken"
else
puts "bugawk"
end
end
foo "hello funky man"
foo "are you a chicken lover"
foo "what does the poultry say"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment