Created
August 16, 2013 01:13
-
-
Save steveshogren/6246405 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 doCalc () | |
return 1 + 2 | |
end | |
def doAwesome (x) | |
return doCalc() + x | |
end | |
#before substitution... | |
def test () | |
return doAwesome(3) | |
end | |
# when substituted... | |
def test () | |
return (1 + 2) + 3 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment