Class: Matchi::Matcher::BeFalse
- Defined in:
- lib/matchi/matcher/be_false.rb
Overview
Untruth matcher.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#matches? ⇒ Boolean
Boolean comparison between the actual value and the expected value.
Methods inherited from Base
#initialize, #inspect, #to_s, to_sym
Constructor Details
This class inherits a constructor from Matchi::Matcher::Base
Instance Method Details
#matches? ⇒ Boolean
Boolean comparison between the actual value and the expected value.
19 20 21 |
# File 'lib/matchi/matcher/be_false.rb', line 19 def matches?(*, **) false.equal?(yield) end |