Method: Logica::Predicates::Base#iff

Defined in:
lib/logica/predicates/base.rb

#iff(other) ⇒ Object



45
46
47
48
# File 'lib/logica/predicates/base.rb', line 45

def iff(other)
  # this is equivalent to xor(other).negated
  self.and(other).or(self.or(other).negated)
end