Actions
Feature #21822
openExpose Return Value in the ensure Block
Feature #21822:
Expose Return Value in the ensure Block
Status:
Open
Assignee:
-
Target version:
-
Description
I'd like to propose a simple feature that allows easy access to the return value inside an ensure block.
begin
# ...
ensure => ret
# ret is nil if an exception is raised
LOGGER.debug "return value: #{ret}"
end
Actions