Created
March 28, 2019 12:05
-
-
Save BitOfUniverse/17e5dce2e32c5f7cb651d4af8faa4ecb to your computer and use it in GitHub Desktop.
Ruby continue method execution with two return statements
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
send def escape | |
return "I want to return" | |
ensure | |
return "I want to finally get out" | |
end | |
=> "I want to finally get out" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment