Skip to content

Instantly share code, notes, and snippets.

@joevandyk
Created September 25, 2010 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save joevandyk/596264 to your computer and use it in GitHub Desktop.
Save joevandyk/596264 to your computer and use it in GitHub Desktop.
def foo1
yield
end
m = lambda { foo1 }
m.call do
puts "i rock"
end
@joevandyk
Copy link
Author

no block given error :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment