Class: Arel::Nodes::Descending

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

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) ascending?

Returns:

  • (Boolean)


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

def ascending?
  false
end

- (Boolean) descending?

Returns:

  • (Boolean)


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

def descending?
  true
end

- (Object) direction



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

def direction
  :desc
end

- (Object) reverse



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

def reverse
  Ascending.new(expr)
end