Created
December 30, 2014 20:23
-
-
Save jeffrafter/babfe5e960a712c89088 to your computer and use it in GitHub Desktop.
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 say_hello | |
name = yield # runs the block and captures the output | |
puts "Hello #{name}" | |
end | |
say_hello do | |
"ellisTAA" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment