Class: Attestor::Policy::Not
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(_) ⇒ Not
constructor
A new instance of Not.
- #validate! ⇒ Object
Methods inherited from Node
Methods included from Attestor::Policy
#and, included, new, #not, #or, #xor
Methods included from Validations::ClassMethods
#validate, #validates, #validations, #validators
Methods included from Factory
Methods included from Validations
Constructor Details
#initialize(_) ⇒ Not
Returns a new instance of Not.
10 11 12 |
# File 'lib/attestor/policy/not.rb', line 10 def initialize(_) super end |
Instance Method Details
#validate! ⇒ Object
14 15 16 17 |
# File 'lib/attestor/policy/not.rb', line 14 def validate! return unless detect(&:valid?) super end |