aboutsummaryrefslogblamecommitdiffstats
path: root/lib/arel/nodes/descending.rb
blob: d886bdcb5f759e74a28bc4b62e3e281d37239c67 (plain) (tree)






















                               
module Arel
  module Nodes
    class Descending < Ordering

      def reverse
        Ascending.new(expr)
      end

      def direction
        :desc
      end

      def ascending?
        false
      end

      def descending?
        true
      end

    end
  end
end