Method: Arel::Nodes::Function#initialize

Defined in:
lib/arel/nodes/function.rb

#initialize(expr, aliaz = nil) ⇒ Function

Returns a new instance of Function.



9
10
11
12
13
14
# File 'lib/arel/nodes/function.rb', line 9

def initialize(expr, aliaz = nil)
  super()
  @expressions = expr
  @alias       = aliaz && SqlLiteral.new(aliaz)
  @distinct    = false
end