Created
May 28, 2014 03:02
-
-
Save evolve2k/83dc3c3072f2c961d593 to your computer and use it in GitHub Desktop.
plus_two ruby mentoring
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 plus_two num | |
| return num + 2 | |
| end | |
| # Most rubyists would tune that further and remove the 'return' knowing that | |
| # ruby always does an automatic return on the last item in a method. | |
| def plus_two num | |
| num + 2 # no returns nahnahnah | |
| end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment