consider `arr.reject { |a| a == '.' }` ?