I'm trying to have an Array assign a value to two variables.
test = "hello, my,name,is,dog,how,are,you"
testsplit = test.split ","
testsplit.each do |x,y|
puts y
end
I would think that it would print
my
is
how
you
but it appears the values only get passed to x and not to y. When I run this code, y comes back empty.