Class: Vanguard::Rule::Nullary::Confirmation::Evaluator

Inherits:
Evaluator
  • Object
show all
Defined in:
lib/vanguard/rule/nullary/confirmation.rb

Overview

Evaluator for confirmation rule

Instance Attribute Summary

Attributes inherited from Evaluator

#resource, #rule

Instance Method Summary collapse

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?

Returns:

  • (true)

    if value is valid

  • (false)

    if value is valid



188
189
190
# File 'lib/vanguard/rule/nullary/confirmation.rb', line 188

def valid?
  value.eql?(confirmation_value)
end