Files

Class Index [+]

Quicksearch

Arel::Predicates::In

Public Instance Methods

complement() click to toggle source
     # File lib/arel/algebra/predicates.rb, line 273
273:       def complement
274:         NotIn.new(operand1, operand2)
275:       end
eval(row) click to toggle source
     # File lib/arel/algebra/predicates.rb, line 277
277:       def eval(row)
278:         operand2.eval(row).include?(operand1.eval(row))
279:       end
predicate_sql() click to toggle source
     # File lib/arel/algebra/predicates.rb, line 291
291:       def predicate_sql; operand2.inclusion_predicate_sql end
to_sql(formatter = nil) click to toggle source
     # File lib/arel/algebra/predicates.rb, line 281
281:       def to_sql(formatter = nil)
282:         if operand2.is_a?(Range) && operand2.exclude_end?
283:           GreaterThanOrEqualTo.new(operand1, operand2.begin).and(
284:             LessThan.new(operand1, operand2.end)
285:           ).to_sql(formatter)
286:         else
287:           super
288:         end
289:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.