Skip to content

Instantly share code, notes, and snippets.

@workmad3
Created September 9, 2010 13:59
Show Gist options
  • Select an option

  • Save workmad3/571897 to your computer and use it in GitHub Desktop.

Select an option

Save workmad3/571897 to your computer and use it in GitHub Desktop.
a = lambda {return}
def test1
yield
end
def test2(&blk)
blk.call
end
test1 &a
test2 &a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment