Class: HttpStub::Server::Stub::Match::StringValueMatcher
- Inherits:
-
Object
- Object
- HttpStub::Server::Stub::Match::StringValueMatcher
- 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
14 15 16 17 |
# File 'lib/http_stub/server/stub/match/string_value_matcher.rb', line 14 def self.match?(stub_value, actual_value) stub_match_value = stub_value ? stub_value.to_s : stub_value !!MATCHERS.find { |matcher| matcher.match?(stub_match_value, actual_value) } end |