Module: Axiom::Function::Connective::Negation::Methods

Extended by:
Aliasable
Included in:
Attribute::Boolean, Predicate, Proposition, Proposition::Contradiction, Proposition::Tautology
Defined in:
lib/axiom/function/connective/negation.rb

Instance Method Summary collapse

Methods included from Aliasable

inheritable_alias

Instance Method Details

#notNegation #not(other) ⇒ Conjunction

Negate the expression or logically AND and negate another expression

Examples:

with no argument

negation = expression.not

with other argument

conjunction = expression.not(other)

Overloads:

Returns:



86
87
88
89
90
91
92
# File 'lib/axiom/function/connective/negation.rb', line 86

def not(other = Undefined)
  if other.equal?(Undefined)
    Negation.new(self)
  else
    self.and(Negation.new(other))
  end
end