Class: Vanguard::Rule::Nullary::Confirmation::Evaluator
- Defined in:
- lib/vanguard/rule/nullary/confirmation.rb
Overview
Evaluator for confirmation rule
Instance Attribute Summary
Attributes inherited from Evaluator
Instance Method Summary collapse
-
#valid? ⇒ true, false
private
Test if value is valid?.
Methods inherited from Evaluator
#initialize, #value, #violation, #violations
Constructor Details
This class inherits a constructor from Vanguard::Evaluator
Instance Method Details
#valid? ⇒ true, false
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Test if value is valid?
188 189 190 |
# File 'lib/vanguard/rule/nullary/confirmation.rb', line 188 def valid? value.eql?(confirmation_value) end |