123456789_123456789_123456789_123456789_123456789_

Class: Arel::Nodes::Ascending

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

Constructor Details

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

Instance Attribute Details

#ascending?Boolean (readonly)

[ GitHub ]

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

def ascending?
  true
end

#descending?Boolean (readonly)

[ GitHub ]

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

def descending?
  false
end

Instance Method Details

#direction

[ GitHub ]

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

def direction
  :asc
end

#reverse

[ GitHub ]

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

def reverse
  Descending.new(expr)
end