Created
July 16, 2014 09:56
-
-
Save AJFaraday/8003815a243575eb06ac to your computer and use it in GitHub Desktop.
Possible ruby bug (1.9.3) else without an if is ignored...
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 test_method | |
@var = 'a' | |
else | |
@var = 'b' | |
end | |
test_method | |
@var #=> 'b' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment