Class: Ward::Matchers::Nil
Overview
TODO:
Remove once the predicate matcher DSL is available.
Tests whether the validation value is nil.
Instance Attribute Summary
Attributes inherited from Matcher
Instance Method Summary collapse
-
#matches?(actual) ⇒ Boolean
Returns whether the given value is nil.
Methods inherited from Matcher
#customise_error_values, error_id, #initialize
Constructor Details
This class inherits a constructor from Ward::Matchers::Matcher
Instance Method Details
#matches?(actual) ⇒ Boolean
Returns whether the given value is nil.
24 25 26 |
# File 'lib/ward/matchers/nil.rb', line 24 def matches?(actual) actual.nil? end |