Skip to content

Instantly share code, notes, and snippets.

@BitOfUniverse
Created March 28, 2019 12:05
Show Gist options
  • Save BitOfUniverse/17e5dce2e32c5f7cb651d4af8faa4ecb to your computer and use it in GitHub Desktop.
Save BitOfUniverse/17e5dce2e32c5f7cb651d4af8faa4ecb to your computer and use it in GitHub Desktop.
Ruby continue method execution with two return statements
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