Module: JsonMatcher

Defined in:
lib/json_matcher.rb,
lib/json_matcher/version.rb

Defined Under Namespace

Classes: Matcher

Constant Summary collapse

VERSION =
"0.0.5"

Class Method Summary collapse

Class Method Details

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



6
7
8
9
# File 'lib/json_matcher.rb', line 6

def self.similar(actual, expected, opts = {})
  result = Matcher.new(actual, expected, opts)
  result.similar? ? nil : result.to_s
end