Class: Axiom::Function::Proposition::Tautology
- Inherits:
-
Axiom::Function::Proposition
- Object
- Axiom::Function
- Axiom::Function::Proposition
- Axiom::Function::Proposition::Tautology
- Includes:
- Connective::Negation::Methods
- Defined in:
- lib/axiom/function/proposition/tautology.rb
Overview
A class representing a tautology
Class Method Summary collapse
-
.call ⇒ true
Evaluate the proposition.
-
.inverse ⇒ Class<Contradiction>
Return the inverse proposition class.
Instance Method Summary collapse
-
#and(other) ⇒ Function
Logically AND the proposition with another expression.
-
#or(_other) ⇒ self
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 ⇒ true
Evaluate the proposition
31 32 33 |
# File 'lib/axiom/function/proposition/tautology.rb', line 31 def self.call true end |
.inverse ⇒ Class<Contradiction>
Return the inverse proposition class
19 20 21 |
# File 'lib/axiom/function/proposition/tautology.rb', line 19 def self.inverse Contradiction end |
Instance Method Details
#and(other) ⇒ Function
Logically AND the proposition with another expression
45 46 47 |
# File 'lib/axiom/function/proposition/tautology.rb', line 45 def and(other) other end |
#or(_other) ⇒ self
Logically OR the proposition with another expression
59 60 61 |
# File 'lib/axiom/function/proposition/tautology.rb', line 59 def or(_other) self end |