Sha256: a59862bc4285e4eb0bd92bfe0cb4c450d517545cea2f4eb7ab1aabc7a87998a6

Contents?: true

Size: 302 Bytes

Versions: 5

Compression:

Stored size: 302 Bytes

Contents

# frozen_string_literal: true
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

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
spiral_form-0.1.1 vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/descending.rb
spiral_form-0.1.0 vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/descending.rb
nullifyable-0.1.0 vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/descending.rb
arel-9.0.0 lib/arel/nodes/descending.rb
arel-8.0.0 lib/arel/nodes/descending.rb