Skip to content

Instantly share code, notes, and snippets.

@grosscol
Created January 28, 2016 19:14
Show Gist options
  • 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