Skip to content

Instantly share code, notes, and snippets.

@wfarr
Created February 3, 2009 06:02
Show Gist options
  • Select an option

  • Save wfarr/57342 to your computer and use it in GitHub Desktop.

Select an option

Save wfarr/57342 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
foo = "foo"
case foo
when "foo" then puts "foo"
when "bar" then puts "bar"
else then puts "wtf?"
end
case foo
when "foo"
puts "foo"
when "bar"
puts "bar"
else
puts "wtf?"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment