class HttpStub::Server::Stub::Match::RegexpValueMatcher
Public Class Methods
match?(stub_value, actual_value)
click to toggle source
# File lib/http_stub/server/stub/match/regexp_value_matcher.rb, line 8 def self.match?(stub_value, actual_value) stub_value.is_a?(Regexp) && !!stub_value.match(actual_value) end