Skip to content

Instantly share code, notes, and snippets.

@grosscol
Created January 28, 2016 19:14
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 grosscol/0ec4acd45ee3b1900c76 to your computer and use it in GitHub Desktop.
Save grosscol/0ec4acd45ee3b1900c76 to your computer and use it in GitHub Desktop.
Rescue next
(-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