Class: HttpStub::Server::Stub::Match::StringValueMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/http_stub/server/stub/match/string_value_matcher.rb

Class Method Summary collapse

Class Method Details

.match?(stub_value, actual_value) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/http_stub/server/stub/match/string_value_matcher.rb', line 14

def self.match?(stub_value, actual_value)
  !!MATCHERS.find { |matcher| matcher.match?(stub_value, actual_value) }
end