Created
January 14, 2019 23:09
-
-
Save djdawson3/2ad3ce234cbf41e0dbe8bd620c7bae0d 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 rawr(num) | |
raise 'even!' + num.to_s if num.even? | |
num | |
end | |
# expect output of 5, but get nil | |
test = rawr(2) rescue rawr(4) rescue rawr(5) | |
test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment