Module: Predicate::In

Includes:
Expr
Defined in:
lib/predicate/nodes/in.rb

Constant Summary

Constants included from Expr

Expr::OP_NEGATIONS

Instance Method Summary collapse

Methods included from Expr

#!, #&, #and_split, #contradiction?, #qualify, #rename, #sexpr, #tautology?, #to_proc, #to_ruby_code, #to_sequel, #|

Methods included from Factory

#and, #between, #comp, #contradiction, #from_hash, #in, #literal, #native, #not, #or, #qualified_identifier, #tautology

Instance Method Details

#constant_variablesObject



21
22
23
# File 'lib/predicate/nodes/in.rb', line 21

def constant_variables
  values.size == 1 ? free_variables : []
end

#free_variablesObject



17
18
19
# File 'lib/predicate/nodes/in.rb', line 17

def free_variables
  @free_variables ||= identifier.free_variables
end

#identifierObject



9
10
11
# File 'lib/predicate/nodes/in.rb', line 9

def identifier
  self[1]
end

#priorityObject



5
6
7
# File 'lib/predicate/nodes/in.rb', line 5

def priority
  80
end

#valuesObject



13
14
15
# File 'lib/predicate/nodes/in.rb', line 13

def values
  self[2]
end