Class: Attestor::Policy::Or Private
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
OR-concatenation of several policies (branches)
The policy is valid unless all its branches are invalid.
Instance Method Summary collapse
-
#validate ⇒ undefined
private
Checks whether any policy is valid.
Methods inherited from Node
each, initialize, new, validate
Methods included from Attestor::Policy
#and, included, #invalid?, new, #not, #or, #valid?, #xor
Methods included from Validations::ClassMethods
Methods included from Factory
Methods included from Validations
Instance Method Details
#validate ⇒ undefined
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.
Checks whether any policy is valid
27 28 29 30 |
# File 'lib/attestor/policy/or.rb', line 27 def validate return if detect(&:valid?) super end |