Method: Policy::Base::Negator#not

Defined in:
lib/policy/base/negator.rb

#not(*policies) ⇒ Policy::Base

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.

Returns a composition of the #policy with negations of other policies

Parameters:

Returns:



32
33
34
# File 'lib/policy/base/negator.rb', line 32

def not(*policies)
  composer.new policy, *policies.flat_map(&Not.method(:new))
end