Skip to content

Instantly share code, notes, and snippets.

/_.rb Secret

Created August 25, 2016 12:55
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 anonymous/c041209ec31f4f6c13907721116c202b to your computer and use it in GitHub Desktop.
Save anonymous/c041209ec31f4f6c13907721116c202b to your computer and use it in GitHub Desktop.
def foo
lambda do |x|
yield(x)
end
end
bar = foo()
# How to get a proc into bar?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment