Skip to content

Instantly share code, notes, and snippets.

@alindeman
Created December 22, 2010 15:57
Show Gist options
  • Save alindeman/751669 to your computer and use it in GitHub Desktop.
Save alindeman/751669 to your computer and use it in GitHub Desktop.
def execute
x = 3
yield
end
x = 1
execute { puts x }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment