Skip to content

Instantly share code, notes, and snippets.

@domgetter
Created August 25, 2013 01:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save domgetter/6331282 to your computer and use it in GitHub Desktop.
Save domgetter/6331282 to your computer and use it in GitHub Desktop.
> 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