Parent

Files

Class Index [+]

Quicksearch

Arel::Ordering

Public Instance Methods

bind(relation) click to toggle source
   # File lib/arel/algebra/ordering.rb, line 5
5:     def bind(relation)
6:       self.class.new(attribute.bind(relation))
7:     end
eval(row1, row2) click to toggle source
    # File lib/arel/algebra/ordering.rb, line 13
13:     def eval(row1, row2)
14:       (attribute.eval(row1) <=> attribute.eval(row2)) * direction
15:     end
to_ordering() click to toggle source
    # File lib/arel/algebra/ordering.rb, line 9
 9:     def to_ordering
10:       self
11:     end
to_sql(formatter = Sql::OrderClause.new(relation)) click to toggle source
    # File lib/arel/algebra/ordering.rb, line 17
17:     def to_sql(formatter = Sql::OrderClause.new(relation))
18:       formatter.ordering self
19:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.