# File lib/arel/nodes/function.rb, line 16 def as aliaz self.alias = SqlLiteral.new(aliaz) self end
# File lib/arel/nodes/function.rb, line 25 def eql? other self.class == other.class && self.expressions == other.expressions && self.alias == other.alias && self.distinct == other.distinct end
# File lib/arel/nodes/function.rb, line 21 def hash [@expressions, @alias, @distinct].hash end
# File lib/arel/nodes/function.rb, line 9 def initialize expr, aliaz = nil super() @expressions = expr @alias = aliaz && SqlLiteral.new(aliaz) @distinct = false end