Project

General

Profile

Bug #4473 ยป ruby-1.9.2-return-else.rb

thuss (Todd Huss), 03/06/2011 04:40 PM

 
#!/usr/bin/env ruby

def test_return_in_method
begin
return
rescue
puts 'rescue executed'
else
puts 'else executed'
end
end
test_return_in_method
    (1-1/1)