Class: HttpStub::Server::Stub::Match::OmittedValueMatcher

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

Class Method Summary collapse

Class Method Details

.match?(stub_value, actual_value) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/http_stub/server/stub/match/omitted_value_matcher.rb', line 12

def self.match?(stub_value, actual_value)
  stub_value == OMITTED_CONTROL_VALUE && actual_value.nil?
end