Module: DiffMatcher

Defined in:
lib/diff_matcher/version.rb,
lib/diff_matcher/difference.rb

Defined Under Namespace

Classes: AllMatcher, Difference, Matcher, NotAnArray

Constant Summary collapse

VERSION =
"2.3.1"

Class Method Summary collapse

Class Method Details

.difference(expected, actual, opts = {}) ⇒ Object



3
4
5
6
# File 'lib/diff_matcher/difference.rb', line 3

def self.difference(expected, actual, opts={})
  difference = Difference.new(expected, actual, opts)
  difference.matching? ? nil : difference.to_s
end