method
difference_between_arrays
difference_between_arrays(array_1, array_2)
private
Hide source
# File lib/spec/matchers/match_array.rb, line 40 def difference_between_arrays(array_1, array_2) difference = array_1.dup array_2.each do |element| if index = difference.index(element) difference.delete_at(index) end end difference end