Created
November 20, 2018 17:22
-
-
Save ramses-lopez/80991b4076e7a5758b5152f13abf97f4 to your computer and use it in GitHub Desktop.
GruesomeMagnificentWorkplace created by ramses_lopezs - https://repl.it/@ramses_lopezs/GruesomeMagnificentWorkplace
This file contains hidden or 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
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