Created
September 25, 2008 22:44
-
-
Save lifo/12969 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 hello(proc) | |
proc.call | |
end | |
hello proc{puts "hey"} | |
hello proc{puts 1+1} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment