Sha256: 52832a5d6a252cbd57a74a60017a3cd8a91ef15aa7168db3387617748b8681e1

Contents?: true

Size: 315 Bytes

Versions: 153

Compression:

Stored size: 315 Bytes

Contents

# frozen_string_literal: true

module Arel # :nodoc: all
  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

153 entries across 148 versions & 12 rubygems

Version Path
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/arel/nodes/descending.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activerecord-7.0.2.3/lib/arel/nodes/descending.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activerecord-7.0.3.1/lib/arel/nodes/descending.rb
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/arel/nodes/descending.rb
activerecord-7.0.5 lib/arel/nodes/descending.rb
activerecord-7.0.4.3 lib/arel/nodes/descending.rb
activerecord-6.1.7.3 lib/arel/nodes/descending.rb
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/arel/nodes/descending.rb
activerecord-6.1.7.2 lib/arel/nodes/descending.rb
activerecord-7.0.4.2 lib/arel/nodes/descending.rb
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/arel/nodes/descending.rb
activerecord-7.0.4.1 lib/arel/nodes/descending.rb
activerecord-6.1.7.1 lib/arel/nodes/descending.rb
activerecord-6.0.6.1 lib/arel/nodes/descending.rb
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/arel/nodes/descending.rb
activerecord-7.0.4 lib/arel/nodes/descending.rb
activerecord-6.1.7 lib/arel/nodes/descending.rb
activerecord-6.0.6 lib/arel/nodes/descending.rb
activerecord-7.0.3.1 lib/arel/nodes/descending.rb
activerecord-6.1.6.1 lib/arel/nodes/descending.rb