Class: Arel::Predicates::All

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



69
70
71
# File 'lib/arel/algebra/predicates.rb', line 69

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

#compounderObject



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

def compounder; :all? end

#predicate_sqlObject



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

def predicate_sql; "AND" end