Created
April 10, 2015 02:13
-
-
Save napramirez/35ca741051374a1285d0 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 add_x_y(x, y) | |
z = x + y | |
yield z | |
return z | |
end | |
add_x_y(2,3) do |z| puts z end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment