def table_for(collection, *args)
"Got #{collection} and #{args.join(', ')}"
end

table_for("one") » "Got one and "
table_for("one", "two") » "Got one and two"
table_for "one", "two", "three" » "Got one and two, three"
table_for("one", "two", "three") » "Got one and two, three"
table_for("one", ["two", "three"]) » "Got one and two, three"
def table_for(var1, var2)
"Got #{var1} #{var2}"
end
array = [1, 2]
table_for(*array) » "Got 1 2"

Some tricks with array parameter, the key is, ruby method will convert parameter to array!