# File lib/arel/nodes/function.rb, line 8 def initialize expr, aliaz = nil super() @expressions = expr @alias = aliaz && SqlLiteral.new(aliaz) @distinct = false end
# File lib/arel/nodes/function.rb, line 15 def as aliaz self.alias = SqlLiteral.new(aliaz) self end
# File lib/arel/nodes/function.rb, line 24 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 20 def hash [@expressions, @alias, @distinct].hash end