def some_method
# ...
if some_condition
throw :get_me_out_of_here
end
catch :get_me_out_of_here do
for ...
some_method
puts "continuing after catching the throw"