Hi

I want to add a value to an arrays' values like this:

ret = ""
"abcd".to_a.each do |w|
 ret += " "
end

this gives => "abcd" in IRB
but I expected it to give "a b c d "

why doesnt this work as such?
thanks

gijs

-- 
Posted via http://www.ruby-forum.com/.