Methods

Class Index [+]

Quicksearch

Arel::Nodes::Function

Attributes

expressions[RW]
alias[RW]
distinct[RW]

Public Class Methods

new(expr, aliaz = nil) click to toggle source
    # File lib/arel/nodes/function.rb, line 8
 8:       def initialize expr, aliaz = nil
 9:         @expressions = expr
10:         @alias       = aliaz && SqlLiteral.new(aliaz)
11:         @distinct    = false
12:       end

Public Instance Methods

as(aliaz) click to toggle source
    # File lib/arel/nodes/function.rb, line 14
14:       def as aliaz
15:         self.alias = SqlLiteral.new(aliaz)
16:         self
17:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.