Skip to content

Instantly share code, notes, and snippets.

@laynor
Created January 16, 2012 21:36
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 laynor/1623162 to your computer and use it in GitHub Desktop.
Save laynor/1623162 to your computer and use it in GitHub Desktop.
def f1
catch(:foo) do
puts 1
throw :foo
puts 2
end
puts 3
end
def fungo2
begin
puts 1
raise :foo
puts 2
rescue
nil
end
puts 3
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment