Class: Contrek::Matchers::ValueNotMatcher

Inherits:
Matcher
  • Object
show all
Defined in:
lib/contrek/matchers/value_not_matcher.rb

Instance Attribute Summary

Attributes inherited from Matcher

#counters, #values

Instance Method Summary collapse

Methods inherited from Matcher

#initialize, #unmatch?

Constructor Details

This class inherits a constructor from Contrek::Matchers::Matcher

Instance Method Details

#match?(value) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/contrek/matchers/value_not_matcher.rb', line 4

def match?(value)
  @value_is != value
end