Created
August 25, 2013 01:06
-
-
Save domgetter/6331282 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 introduction(age, sex, *names) | |
> temp = *names.join | |
> puts *names.join.class | |
> puts temp.class | |
> #these should be the same, no? | |
> end | |
=> nil | |
> introduction(13, "Male", "Sid", "Samuel", "Smith") | |
String | |
Array | |
=> nil | |
> #wait, what? why aren't those the same?? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment