Skip to content

Instantly share code, notes, and snippets.

@tenderlove
Forked from joevandyk/t.rb
Created September 25, 2010 00:02
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 tenderlove/596265 to your computer and use it in GitHub Desktop.
Save tenderlove/596265 to your computer and use it in GitHub Desktop.
def foo1
yield
end
m = lambda { |&block| foo1(&block) }
m.call do
puts "i rock"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment