Created
March 3, 2015 23:01
-
-
Save enebo/41d2a4b2a65f653ad801 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 a | |
yield 3 | |
end | |
def b | |
arr = [] | |
x = 1 | |
1.times { | |
y = 2 | |
arr << x | |
x = 3 | |
a { | |
arr << y | |
y = 4 | |
arr << x | |
x = 5 | |
} | |
arr << y | |
arr << x | |
x = 6 | |
} | |
arr << x | |
p arr | |
end | |
100.times { b } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment