Created
March 22, 2013 06:13
-
-
Save abrongersma/5219333 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 first_character(word) <--- the argument for the method is accessable inside the method. | |
word = "#{word}" <--- this line is redundant. Try running your code without this line. | |
word[0] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment