Class: Arel::Nodes::Ascending
Instance Attribute Summary
Attributes inherited from Unary
#expr
Instance Method Summary
collapse
Methods inherited from Unary
#initialize
Methods inherited from Node
#and, #each, #not, #or, #to_sql
#create_and, #create_false, #create_join, #create_on, #create_string_join, #create_table_alias, #create_true, #grouping, #lower
Instance Method Details
#ascending? ⇒ Boolean
13
14
15
|
# File 'lib/arel/nodes/ascending.rb', line 13
def ascending?
true
end
|
#descending? ⇒ Boolean
17
18
19
|
# File 'lib/arel/nodes/ascending.rb', line 17
def descending?
false
end
|
#direction ⇒ Object
9
10
11
|
# File 'lib/arel/nodes/ascending.rb', line 9
def direction
:asc
end
|
#reverse ⇒ Object
5
6
7
|
# File 'lib/arel/nodes/ascending.rb', line 5
def reverse
Descending.new(expr)
end
|