Build a Polyadic predicate based on:
operator - The Predicate subclass that defines the type of operation (LessThan, Equality, etc)
operand1 - The left-hand operand (normally an Arel::Attribute)
additional_operands - All possible right-hand operands
# File lib/arel/algebra/predicates.rb, line 33
33: def self.build(operator, operand1, *additional_operands)
34: new(
35: *additional_operands.uniq.map do |operand|
36: operator.new(operand1, operand)
37: end
38: )
39: end
# File lib/arel/algebra/predicates.rb, line 41
41: def ==(other)
42: super || predicates == other.predicates
43: end
# File lib/arel/algebra/predicates.rb, line 45
45: def bind(relation)
46: self.class.new(
47: *predicates.map {|p| p.find_correlate_in(relation)}
48: )
49: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.