join is used to convert an array to a string. In the following, *names is joined, and is output. Does this mean arguments are array?
def introduction( age, gender, *names)
"Meet #{names.join(" ")}, who's #{age} and #{gender}"
end
puts introduction(28, "Male", "Sidu", "Ponnappa", "Chonira")
This outputs:
Meet Sidu Ponnappa Chonira, who's 28 and Male