Skip to content

Instantly share code, notes, and snippets.

@voidlily
Last active October 4, 2015 06:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voidlily/2596267 to your computer and use it in GitHub Desktop.
Save voidlily/2596267 to your computer and use it in GitHub Desktop.
foo = lambda do |a|
b = a + 5
b
end
b = 2
foo.call(b)
=> 7
b
=> 7 #expected 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment