Class: Matchi::Matcher::BeNil
Overview
Nil 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
Instance Method Details
#matches? ⇒ Boolean
Boolean comparison between the actual value and the expected value.
19 20 21 |
# File 'lib/matchi/matcher/be_nil.rb', line 19 def matches?(*, **) nil.equal?(yield) end |