123456789_123456789_123456789_123456789_123456789_

Class: Arel::Nodes::Descending

Do not use. This class is for internal use only.

Class Method Summary

Unary - Inherited

Instance Attribute Summary

Unary - Inherited

#expr,
#value

Alias for Unary#expr.

Node - Inherited

Instance Method Summary

Ordering - Inherited

Unary - Inherited

#==

Alias for Unary#eql?.

#eql?, #hash

::Arel::Math - Included

#&, #*, #+, #-, #/, #<<, #>>, #^, #|, #~@

::Arel::OrderPredications - Included

::Arel::AliasPredication - Included

#as

::Arel::Predications - Included

::Arel::Expressions - Included

Node - Inherited

#and

Factory method to create an And node.

#fetch_attribute, #invert,
#not

Factory method to create a Nodes::Not node that has the recipient of the caller as a child.

#or

Factory method to create a Grouping node that has an Or node as a child.

#to_sql

FIXME: this method should go away.

::Arel::FactoryMethods - Included

Constructor Details

This class inherits a constructor from Arel::Nodes::Unary

Instance Attribute Details

#ascending?Boolean (readonly)

[ GitHub ]

  
# File 'activerecord/lib/arel/nodes/descending.rb', line 14

def ascending?
  false
end

#descending?Boolean (readonly)

[ GitHub ]

  
# File 'activerecord/lib/arel/nodes/descending.rb', line 18

def descending?
  true
end

Instance Method Details

#direction

[ GitHub ]

  
# File 'activerecord/lib/arel/nodes/descending.rb', line 10

def direction
  :desc
end

#reverse

[ GitHub ]

  
# File 'activerecord/lib/arel/nodes/descending.rb', line 6

def reverse
  Ascending.new(expr)
end