method
difference_between_arrays
1.2.8 -
Show latest stable
- Class:
Spec::Matchers::MatchArray
difference_between_arrays(array_1, array_2)private
No documentation available.
# 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