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