Module: Arel::OrderPredications

Included in:
Attributes::Attribute, Expression, Nodes::SqlLiteral
Defined in:
lib/arel/order_predications.rb

Instance Method Summary collapse

Instance Method Details

#ascObject



4
5
6
# File 'lib/arel/order_predications.rb', line 4

def asc
  Nodes::Ordering.new self, :asc
end

#descObject



8
9
10
# File 'lib/arel/order_predications.rb', line 8

def desc
  Nodes::Ordering.new self, :desc
end