Created
July 25, 2017 18:21
-
-
Save patmaddox/0197807f5d927eebf38cbdde1f5bc10c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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