Skip to content

Instantly share code, notes, and snippets.

@BitOfUniverse
Last active March 28, 2019 12:07
Show Gist options
  • Save BitOfUniverse/fbaeb9e8189b49735540e7bada4b6faf to your computer and use it in GitHub Desktop.
Save BitOfUniverse/fbaeb9e8189b49735540e7bada4b6faf to your computer and use it in GitHub Desktop.
Ruby continue method execution
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