Files

Class Index [+]

Quicksearch

Arel::Expression

Attributes

attribute[R]

Public Class Methods

new(attribute, aliaz = nil, ancestor = nil) click to toggle source
   # File lib/arel/algebra/expression.rb, line 6
6:     def initialize(attribute, aliaz = nil, ancestor = nil)
7:       super(attribute.relation, aliaz, :alias => aliaz, :ancestor => ancestor)
8:       @attribute = attribute
9:     end

Public Instance Methods

aggregation?() click to toggle source
    # File lib/arel/algebra/expression.rb, line 11
11:     def aggregation?
12:       true
13:     end
as(aliaz) click to toggle source
    # File lib/arel/algebra/expression.rb, line 19
19:     def as(aliaz)
20:       self.class.new(attribute, aliaz, self)
21:     end
bind(new_relation) click to toggle source
    # File lib/arel/algebra/expression.rb, line 23
23:     def bind(new_relation)
24:       new_relation == relation ? self : self.class.new(attribute.bind(new_relation), @alias, self)
25:     end
to_attribute(relation) click to toggle source
    # File lib/arel/algebra/expression.rb, line 27
27:     def to_attribute(relation)
28:       Attribute.new(relation, @alias, :ancestor => self)
29:     end
to_sql(formatter = Sql::SelectClause.new(relation)) click to toggle source
    # File lib/arel/algebra/expression.rb, line 15
15:     def to_sql(formatter = Sql::SelectClause.new(relation))
16:       formatter.expression self
17:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.