aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/ascending.rb
blob: adadab55e42d892de90152b552827daa363e5642 (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
24
# frozen_string_literal: true
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