Created
August 19, 2012 07:09
-
-
Save dnch/3393069 to your computer and use it in GitHub Desktop.
NOPE NOPE NOPE
This file contains hidden or 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
#!/usr/bin/env ruby -wKU | |
str = "Herp" | |
case str | |
when "Herp" | |
when "Derp" | |
puts "This will never, ever work the way you want it to. Ruby ain't PHP." | |
end | |
case str | |
when "Herp", "Derp" | |
puts "But this sure will." | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment