Created
April 16, 2012 03:47
-
-
Save rrouse/2396262 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 blah | |
"blah".nil? && "bleh".nil? | |
puts "hi" | |
else | |
puts "hello" | |
end | |
Calling blah prints hi and hello, but doesn't error. It warns in irb with (irb):6: warning: else without rescue is useless |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment