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