Files

Class Index [+]

Quicksearch

Arel::Predicates::Unary

Attributes

operand[R]

Public Class Methods

new(operand) click to toggle source
    # File lib/arel/algebra/predicates.rb, line 87
87:       def initialize operand
88:         @operand = operand
89:       end

Public Instance Methods

==(other) click to toggle source
    # File lib/arel/algebra/predicates.rb, line 95
95:       def == other
96:         super || self.class === other && operand == other.operand
97:       end
bind(relation) click to toggle source
    # File lib/arel/algebra/predicates.rb, line 91
91:       def bind(relation)
92:         self.class.new(operand.find_correlate_in(relation))
93:       end
eval(row) click to toggle source
     # File lib/arel/algebra/predicates.rb, line 99
 99:       def eval(row)
100:         operand.eval(row).send(operator)
101:       end
to_sql(formatter = nil) click to toggle source
     # File lib/arel/algebra/predicates.rb, line 103
103:       def to_sql(formatter = nil)
104:         "#{predicate_sql} (#{operand.to_sql(formatter)})"
105:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.