Class: Attestor::Policy::Xor 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.
XOR-concatenation of several policies (branches)
The policy is valid when it has both valid and invalid branches.
Instance Method Summary collapse
-
#validate ⇒ undefined
private
Checks whether both valid and invalid branches are present.
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 both valid and invalid branches are present
27 28 29 30 |
# File 'lib/attestor/policy/xor.rb', line 27 def validate return if any_valid? && any_invalid? super end |