Class: Leftovers::Matchers::Not
- Inherits:
-
Object
- Object
- Leftovers::Matchers::Not
- Includes:
- ComparableInstance
- Defined in:
- lib/leftovers/matchers/not.rb
Instance Method Summary collapse
- #===(value) ⇒ Object
-
#initialize(matcher) ⇒ Not
constructor
A new instance of Not.
Methods included from ComparableInstance
Constructor Details
#initialize(matcher) ⇒ Not
Returns a new instance of Not.
8 9 10 11 12 |
# File 'lib/leftovers/matchers/not.rb', line 8 def initialize(matcher) @matcher = matcher freeze end |
Instance Method Details
#===(value) ⇒ Object
14 15 16 |
# File 'lib/leftovers/matchers/not.rb', line 14 def ===(value) !(@matcher === value) end |