Skip to content

Instantly share code, notes, and snippets.

@ramses-lopez
Created November 20, 2018 17:22
Show Gist options
  • Save ramses-lopez/80991b4076e7a5758b5152f13abf97f4 to your computer and use it in GitHub Desktop.
Save ramses-lopez/80991b4076e7a5758b5152f13abf97f4 to your computer and use it in GitHub Desktop.
GruesomeMagnificentWorkplace created by ramses_lopezs - https://repl.it/@ramses_lopezs/GruesomeMagnificentWorkplace
def block_example(&block)
puts 'This goes before the execution'
yield
puts 'This goes after the execution'
end
block_example do
puts 'awesome ruby code goes here!'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment