Last active
March 28, 2019 12:07
-
-
Save BitOfUniverse/fbaeb9e8189b49735540e7bada4b6faf to your computer and use it in GitHub Desktop.
Ruby continue method execution
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 | |
puts "print this text first" | |
end | |
# Output looks like this: | |
print this text first | |
=> "I want to return" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment