Class: Arel::Nodes::Descending
- Inherits:
-
Ordering
- Object
- Ordering
- Arel::Nodes::Descending
- Defined in:
- lib/arel/nodes/descending.rb
Instance Method Summary collapse
Instance Method Details
#ascending? ⇒ Boolean
14 15 16 |
# File 'lib/arel/nodes/descending.rb', line 14 def ascending? false end |
#descending? ⇒ Boolean
18 19 20 |
# File 'lib/arel/nodes/descending.rb', line 18 def descending? true end |
#direction ⇒ Object
10 11 12 |
# File 'lib/arel/nodes/descending.rb', line 10 def direction :desc end |
#reverse ⇒ Object
6 7 8 |
# File 'lib/arel/nodes/descending.rb', line 6 def reverse Ascending.new(expr) end |