Module: Predicate::Tautology
- Includes:
- Expr
- Defined in:
- lib/predicate/nodes/tautology.rb
Constant Summary
Constants included
from Expr
Expr::OP_NEGATIONS
Instance Method Summary
collapse
Methods included from Expr
#and_split, #constant_variables, #contradiction?, #qualify, #rename, #sexpr, #to_proc, #to_ruby_code, #to_sequel
Methods included from Factory
#and, #between, #comp, #contradiction, #from_hash, #identifier, #in, #literal, #native, #not, #or, #qualified_identifier, #tautology
Instance Method Details
#! ⇒ Object
9
10
11
|
# File 'lib/predicate/nodes/tautology.rb', line 9
def !
contradiction
end
|
#&(other) ⇒ Object
13
14
15
|
# File 'lib/predicate/nodes/tautology.rb', line 13
def &(other)
other
end
|
#free_variables ⇒ Object
25
26
27
|
# File 'lib/predicate/nodes/tautology.rb', line 25
def free_variables
@free_variables ||= []
end
|
#priority ⇒ Object
21
22
23
|
# File 'lib/predicate/nodes/tautology.rb', line 21
def priority
100
end
|
#tautology? ⇒ Boolean
5
6
7
|
# File 'lib/predicate/nodes/tautology.rb', line 5
def tautology?
true
end
|
#|(other) ⇒ Object
17
18
19
|
# File 'lib/predicate/nodes/tautology.rb', line 17
def |(other)
self
end
|