Class: Attestor::Policy::Not

Inherits:
Node
  • Object
show all
Defined in:
lib/attestor/policy/not.rb

Instance Attribute Summary

Attributes inherited from Node

#branches

Instance Method Summary collapse

Methods inherited from Node

#each

Methods included from Attestor::Policy

#and, included, new, #not, #or, #xor

Methods included from Validations::ClassMethods

#validate, #validates, #validations, #validators

Methods included from Factory

#and, #not, #or, #xor

Methods included from Validations

included, #invalid, #validate

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