Class: Arel::Predicates::All

Inherits:
Polyadic show all
Defined in:
lib/arel/algebra/predicates.rb

Instance Attribute Summary

Attributes inherited from Polyadic

#predicates

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



75
76
77
# File 'lib/arel/algebra/predicates.rb', line 75

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

#compounderObject



79
# File 'lib/arel/algebra/predicates.rb', line 79

def compounder; :all? end

#predicate_sqlObject



81
# File 'lib/arel/algebra/predicates.rb', line 81

def predicate_sql; "AND" end