Class: Arel::Nodes::Ascending

Inherits:
Ordering
  • Object
show all
Defined in:
lib/arel/nodes/ascending.rb

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) ascending?



13
14
15
# File 'lib/arel/nodes/ascending.rb', line 13

def ascending?
  true
end

- (Boolean) descending?



17
18
19
# File 'lib/arel/nodes/ascending.rb', line 17

def descending?
  false
end

- (Object) direction



9
10
11
# File 'lib/arel/nodes/ascending.rb', line 9

def direction
  :asc
end

- (Object) reverse



5
6
7
# File 'lib/arel/nodes/ascending.rb', line 5

def reverse
  Descending.new(expr)
end