Skip to content

Instantly share code, notes, and snippets.

Created August 25, 2016 09:21
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/3e6e109b7f11a5588935e08078f6a6e2 to your computer and use it in GitHub Desktop.
Save anonymous/3e6e109b7f11a5588935e08078f6a6e2 to your computer and use it in GitHub Desktop.
lambda do |fn|
fn.call(1)
end.call(
SOME_LAMBDA
)
############
def method
yield(1)
end
method do
SOME_BLOCK
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment