Module: Arel::AliasPredication

Included in:
Arel::Attributes::Attribute, Nodes::InfixOperation, Nodes::Over, Nodes::SqlLiteral
Defined in:
lib/arel/alias_predication.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) as(other)



3
4
5
# File 'lib/arel/alias_predication.rb', line 3

def as other
  Nodes::As.new self, Nodes::SqlLiteral.new(other)
end