Module: Predicate::NadicBool

Includes:
Expr
Included in:
And, Or
Defined in:
lib/predicate/nodes/nadic_bool.rb

Constant Summary

Constants included from Expr

Expr::OP_NEGATIONS

Instance Method Summary collapse

Methods included from Expr

#!, #&, #and_split, #attr_split, #bind, #constant_variables, #constants, #contradiction?, #dyadic_priority, #identifier?, #literal?, #opaque?, #qualify, #rename, #sexpr, #tautology?, #to_hash, #to_postgres, #to_s, #to_sequel, #unqualify, #|

Methods included from Factory

#_factor_predicate, #and, #comp, #contradiction, #empty, #from_hash, #h, #has_size, #identifier, #in, #literal, #match, #native, #not, #opaque, #or, #pg_array_empty, #pg_array_literal, #pg_array_overlaps, #placeholder, #qualified_identifier, #sexpr, #tautology, #var, #vars

Instance Method Details

#free_variablesObject



7
8
9
10
11
# File 'lib/predicate/nodes/nadic_bool.rb', line 7

def free_variables
  @free_variables ||= sexpr_body.inject([]){|list,term| 
    list | term.free_variables
  }
end

#priorityObject



5
# File 'lib/predicate/nodes/nadic_bool.rb', line 5

def priority; 60; end