Skip to content

Instantly share code, notes, and snippets.

@pbrisbin
Forked from domgetter/gist:6331282
Last active December 21, 2015 16:09
Show Gist options
  • Save pbrisbin/6331319 to your computer and use it in GitHub Desktop.
Save pbrisbin/6331319 to your computer and use it in GitHub Desktop.
def introduction(age, sex, *names)
temp = *(names.join) # * is applied to (names.join)
temp = ["SidSamuelSmith"] # an Array
puts *names.join.class # #join is sent to (*names)
puts "SidsamuelSmith".class # a String
puts temp.class
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment