Created
September 27, 2013 14:38
-
-
Save MSch/6729599 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
$state = 0 | |
def lol(x, y) | |
$state += 1 | |
puts "Incrementing state it's now #{$state}" | |
[:bla, $state] | |
end | |
a, e = lol(:screw, :this) until e == 3 | |
puts "a=#{a} e=#{e}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment