Skip to content

Instantly share code, notes, and snippets.

@djdawson3
Created January 14, 2019 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djdawson3/2ad3ce234cbf41e0dbe8bd620c7bae0d to your computer and use it in GitHub Desktop.
Save djdawson3/2ad3ce234cbf41e0dbe8bd620c7bae0d to your computer and use it in GitHub Desktop.
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