Skip to content

Instantly share code, notes, and snippets.

@wilson
Created November 14, 2009 19:41
Show Gist options
  • Save wilson/234719 to your computer and use it in GitHub Desktop.
Save wilson/234719 to your computer and use it in GitHub Desktop.
puts "ruby version: #{RUBY_VERSION}"
pass = 0
proc do |@x|
pass += 1
puts "proc pass number #{pass}"
@x = 3 if pass == 1
puts "proc x is: #{@x}"
redo if pass != 2
@x
end.call(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment