3 4 5 6 7
# File 'lib/fastdfs-client/utils.rb', line 3 def self.array_merge(arr1, arr2) raise "argument must be array" unless arr1.is_a?(Array) || arr2.is_a?(Array) arr2.each_with_index.map{|v, i| arr1[i] = v } arr1 end