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