Sha256: 832a85fa39fca58e32bfa1c679129e1e605d732ceb8fa2d583db3de9ccab870e

Contents?: true

Size: 327 Bytes

Versions: 12

Compression:

Stored size: 327 Bytes

Contents

module Arel
  module Nodes
    class Ordering < Arel::Nodes::Binary
      alias :expr :left
      alias :direction :right

      def initialize expr, direction = :asc
        super
      end

      def ascending?
        direction == :asc
      end

      def descending?
        direction == :desc
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
arel-2.0.10 lib/arel/nodes/ordering.rb
arel-2.1.1 lib/arel/nodes/ordering.rb
square-arel-2.0.9.20110222133018 lib/arel/nodes/ordering.rb
arel-2.1.0 lib/arel/nodes/ordering.rb
arel-2.0.9 lib/arel/nodes/ordering.rb
arel-2.0.9.rc1 lib/arel/nodes/ordering.rb
arel-2.0.8 lib/arel/nodes/ordering.rb
arel-2.0.8.beta.20110131120940 lib/arel/nodes/ordering.rb
arel-2.0.7 lib/arel/nodes/ordering.rb
arel-2.0.7.beta.20110110114925 lib/arel/nodes/ordering.rb
arel-2.0.6 lib/arel/nodes/ordering.rb
arel-2.0.5 lib/arel/nodes/ordering.rb