Module: Arel::Attribute::Orderings

Included in:
Arel::Attribute
Defined in:
lib/arel/algebra/attributes/attribute.rb

Instance Method Summary collapse

Instance Method Details

#ascObject Also known as: to_ordering



231
232
233
# File 'lib/arel/algebra/attributes/attribute.rb', line 231

def asc
  Ascending.new(self)
end

#descObject



235
236
237
# File 'lib/arel/algebra/attributes/attribute.rb', line 235

def desc
  Descending.new(self)
end