Skip to content

Instantly share code, notes, and snippets.

@MSch
Created September 27, 2013 14:38
Show Gist options
  • Save MSch/6729599 to your computer and use it in GitHub Desktop.
Save MSch/6729599 to your computer and use it in GitHub Desktop.
$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