Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.