Created
January 16, 2021 12:40
-
-
Save salami-art/0c087b11cb9ca7d8b751afda1ff2fbd1 to your computer and use it in GitHub Desktop.
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
def do_stuff_with_data(&block) | |
data = 1 | |
yield data | |
end | |
do_stuff_with_data do |data| | |
puts data | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment