Files

Class Index [+]

Quicksearch

Arel::Predicates::Binary

Attributes

operand2[R]

Public Class Methods

new(left, right) click to toggle source
     # File lib/arel/algebra/predicates.rb, line 124
124:       def initialize left, right
125:         super(left)
126:         @operand2 = right
127:       end

Public Instance Methods

==(other) click to toggle source
     # File lib/arel/algebra/predicates.rb, line 129
129:       def ==(other)
130:         super && @operand2 == other.operand2
131:       end
bind(relation) click to toggle source
     # File lib/arel/algebra/predicates.rb, line 133
133:       def bind(relation)
134:         self.class.new(operand1.find_correlate_in(relation), operand2.find_correlate_in(relation))
135:       end
eval(row) click to toggle source
     # File lib/arel/algebra/predicates.rb, line 137
137:       def eval(row)
138:         operand1.eval(row).send(operator, operand2.eval(row))
139:       end
to_sql(formatter = nil) click to toggle source
     # File lib/arel/algebra/predicates.rb, line 141
141:       def to_sql(formatter = nil)
142:         "#{operand1.to_sql} #{predicate_sql} #{operand1.format(operand2)}"
143:       end
Also aliased as: value
value(formatter = nil) click to toggle source
Alias for: to_sql

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.