Created
August 24, 2018 13:54
-
-
Save mehdi-farsi/cd22039818ab5188a6d507da27d10176 to your computer and use it in GitHub Desktop.
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 one_yield | |
yield | |
end | |
def multiple_yields | |
yield | |
yield | |
end | |
one_yield { puts "one yield" } | |
multiple_yields { puts "multiple yields" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment