aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/ascending.rb
blob: bca00a833911f15a17c08456319c061e929cf790 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module Arel
  module Nodes
    class Ascending < Ordering

      def reverse
        Descending.new(expr)
      end

      def direction
        :asc
      end

      def ascending?
        true
      end

      def descending?
        false
      end

    end
  end
end