Class: Attestor::Policy::And 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.
AND-concatenation of several policies (branches)
The policy is valid if all its branches are valid.
Instance Method Summary collapse
-
#validate ⇒ undefined
private
Checks whether every policy is valid.
Methods inherited from Node
Methods included from Attestor::Policy
#and, included, #invalid?, new, #not, #or, #valid?, #xor
Methods included from Validations::ClassMethods
#follow_policy, #follow_validator, #validators
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 every policy is valid
27 28 29 30 |
# File 'lib/attestor/policy/and.rb', line 27 def validate return unless any_invalid? super end |