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
-
#not(other = Undefined) ⇒ Connective
Negate the expression or logically AND and negate another expression.
Methods included from Aliasable
Instance Method Details
#not ⇒ Negation #not(other) ⇒ Conjunction
Negate the expression or logically AND and negate another expression
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 |