Created
May 24, 2017 03:52
-
-
Save rmoro/dc0bf5e2b330dcf1ec80c674b4bd9a8c to your computer and use it in GitHub Desktop.
union branches
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
some_string = gets(/\n?\n\r?\r/) | |
if some_string == Nil | |
# do something | |
else | |
some_string.as_s # <= fails | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment