Created
September 10, 2018 13:10
-
-
Save mehdi-farsi/3457a84a15a11eacfd0f47299c246bbd 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 hello | |
yield | |
end | |
hello do | |
puts 'hello' | |
redo | |
end | |
# produces: | |
# | |
# hello | |
# hello | |
# hello | |
# ... infinite loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment