aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/skip.rb
blob: f17e439ebf8cf8a008efa4d6f0736e9695973b84 (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)
      self.class  == other.class    and
      relation    == other.relation and
      skipped     == other.skipped
    end
  end
end