4 ms·
Ruby already does that implicitly. Each method have an implicit begin, allowing you to write code like def hello return do_someting rescue FooError return
by yxhuvud 14y ago
Ruby already does that implicitly. Each method have an implicit begin, allowing you to write code like
def hello
return do_someting
rescue FooError
return :fail
end