> arrayofA.collect { |e| [e.i,e.v] }.flatten.each { |i,v| p i,v }

Perhaps you mean

arrayofA.collect { |e| [e.i,e.v] }.each { |(i,v)| p i,v }