Created
January 28, 2016 19:14
-
-
Save grosscol/0ec4acd45ee3b1900c76 to your computer and use it in GitHub Desktop.
Rescue next
This file contains hidden or 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
(-5..5).each do |v| | |
begin | |
puts 10 / v | |
rescue => e | |
puts "#{e.message}" | |
next | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment