Class: Matchi::BeNil
- Inherits:
- BasicObject
- Defined in:
- lib/matchi/be_nil.rb
Overview
Nil matcher.
Instance Method Summary collapse
-
#matches? ⇒ Boolean
Comparison between actual and expected values.
Instance Method Details
#matches? ⇒ Boolean
Returns Comparison between actual and expected values.
11 12 13 |
# File 'lib/matchi/be_nil.rb', line 11 def matches? nil.equal?(yield) end |