Module: DiffMatcher

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

Defined Under Namespace

Classes: AllMatcher, Difference, Matcher

Constant Summary collapse

VERSION =
"2.7.1"

Class Method Summary collapse

Class Method Details

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



5
6
7
8
# File 'lib/diff_matcher/difference.rb', line 5

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