Class: Axiom::Function::Connective::Negation
- Inherits:
-
Axiom::Function::Connective
- Object
- Axiom::Function
- Axiom::Function::Connective
- Axiom::Function::Connective::Negation
- Includes:
- Unary, Unary::Invertible
- Defined in:
- lib/axiom/function/connective/negation.rb
Overview
A logical negation of an expression
Defined Under Namespace
Modules: Methods
Instance Attribute Summary
Attributes included from Operation::Unary
Class Method Summary collapse
-
.call(operand) ⇒ Boolean
Evaluate the operands using a logical NOT.
-
.operation ⇒ Symbol
Return the negation operation.
Instance Method Summary collapse
-
#inverse ⇒ Function
Return the operand.
Methods included from Unary
Methods included from Unary::Callable
Methods included from Operation::Unary
Methods inherited from Axiom::Function::Connective
Methods inherited from Axiom::Function
extract_value, rename_attributes, #type
Methods included from Visitable
Class Method Details
.call(operand) ⇒ Boolean
Evaluate the operands using a logical NOT
38 39 40 |
# File 'lib/axiom/function/connective/negation.rb', line 38 def self.call(operand) !operand end |
.operation ⇒ Symbol
Return the negation operation
21 22 23 |
# File 'lib/axiom/function/connective/negation.rb', line 21 def self.operation :'!' end |
Instance Method Details
#inverse ⇒ Function
Return the operand
50 51 52 |
# File 'lib/axiom/function/connective/negation.rb', line 50 def inverse operand end |