Created
November 27, 2009 15:20
-
-
Save BenHall/244057 to your computer and use it in GitHub Desktop.
Yield a block of code in Ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def x() | |
yeild | |
end | |
x { puts 'abc' } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment