Class: Axiom::Function::Proposition::Contradiction
- Inherits:
-
Axiom::Function::Proposition
- Object
- Axiom::Function
- Axiom::Function::Proposition
- Axiom::Function::Proposition::Contradiction
- Includes:
- Connective::Negation::Methods
- Defined in:
- lib/axiom/function/proposition/contradiction.rb
Overview
A class representing a contradiction
Class Method Summary collapse
-
.call ⇒ false
Evaluate the proposition.
-
.inverse ⇒ Class<Tautology>
Return the inverse proposition class.
Instance Method Summary collapse
-
#and(_other) ⇒ self
Logically AND the proposition with another expression.
-
#or(other) ⇒ Function
Logically OR the proposition with another expression.
Methods included from Connective::Negation::Methods
Methods included from Aliasable
Methods inherited from Axiom::Function::Proposition
#call, coerce, #inverse, #rename, type
Methods inherited from Axiom::Function
extract_value, rename_attributes, #type
Methods included from Visitable
Class Method Details
.call ⇒ false
Evaluate the proposition
31 32 33 |
# File 'lib/axiom/function/proposition/contradiction.rb', line 31 def self.call false end |
Instance Method Details
#and(_other) ⇒ self
Logically AND the proposition with another expression
45 46 47 |
# File 'lib/axiom/function/proposition/contradiction.rb', line 45 def and(_other) self end |
#or(other) ⇒ Function
Logically OR the proposition with another expression
59 60 61 |
# File 'lib/axiom/function/proposition/contradiction.rb', line 59 def or(other) other end |