Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement