Class: Arel::Predicates::Any

Inherits:
Polyadic show all
Defined in:
lib/arel/algebra/predicates.rb,
lib/arel/engines/sql/predicates.rb,
lib/arel/engines/memory/predicates.rb

Instance Method Summary collapse

Methods inherited from Polyadic

#==, #bind, build, #eval, #initialize, #to_sql

Methods inherited from Predicate

#and, #not, #or

Constructor Details

This class inherits a constructor from Arel::Predicates::Polyadic

Instance Method Details

#complementObject



63
64
65
# File 'lib/arel/algebra/predicates.rb', line 63

def complement
  All.new(*predicates.map {|p| p.complement})
end

#compounderObject



30
# File 'lib/arel/engines/memory/predicates.rb', line 30

def compounder; :any? end

#predicate_sqlObject



42
# File 'lib/arel/engines/sql/predicates.rb', line 42

def predicate_sql; "OR" end