Passing one argument at a time into the parser method works. More than one and it generates "syntax error, unexpected ',', expecting ')' (SyntaxError)"
$array = []
array_1 = %w(tuna salmon herring)
array_2 = %w(crow owl eagle dove)
def parser (*argument)
argument.each do |item|
$array << item
end
end
parser (array_1, array_2) # taking multiple arguments generates error
$array.flatten!
puts $array