Module: Arel::AliasPredication

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

Instance Method Summary collapse

Instance Method Details

#as(other) ⇒ Object



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

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