Method: Object#contrast_with!

Defined in:
lib/contrast_with.rb

#contrast_with!(other, fields = other.keys) ⇒ Object



7
8
9
10
# File 'lib/contrast_with.rb', line 7

def contrast_with!(other, fields = other.keys)
  results = self.contrast_with(other, fields)
  raise Contrast::MatchingException.new(results) if results.any?
end