aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/operations/skip.rb
blob: 01ac4c7204e3ae6f92175c1eaf0499587c791a64 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module Arel
  class Skip < Compound
    attr_reader :skipped

    def initialize(relation, skipped)
      @relation, @skipped = relation, skipped
    end

    def ==(other)
      Skip        === other          and
      relation    ==  other.relation and
      skipped     ==  other.skipped
    end
  end
end