module Dry::Logic::Operators

Public Instance Methods

&(other)
Alias for: and
>(other)
Alias for: then
^(other)
Alias for: xor
and(other) click to toggle source
# File lib/dry/logic/operators.rb, line 6
def and(other)
  Operations::And.new(self, other)
end
Also aliased as: &
or(other) click to toggle source
# File lib/dry/logic/operators.rb, line 11
def or(other)
  Operations::Or.new(self, other)
end
Also aliased as: |
then(other) click to toggle source
# File lib/dry/logic/operators.rb, line 21
def then(other)
  Operations::Implication.new(self, other)
end
Also aliased as: >
xor(other) click to toggle source
# File lib/dry/logic/operators.rb, line 16
def xor(other)
  Operations::Xor.new(self, other)
end
Also aliased as: ^
|(other)
Alias for: or