Skip to content

Instantly share code, notes, and snippets.

@steveshogren
Created August 16, 2013 01:13
Show Gist options
  • Save steveshogren/6246405 to your computer and use it in GitHub Desktop.
Save steveshogren/6246405 to your computer and use it in GitHub Desktop.
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