aboutsummaryrefslogblamecommitdiffstats
path: root/lib/arel/relations/operations/take.rb
blob: 0a49891aee012eedf568d6862729bebe0b9b5b94 (plain) (tree)
1
2
3
4
5
6
7
8
9
           
                       
                      
 

                                         


                 


                                        
       

     
module Arel
  class Take < Compound
    attr_reader :taken

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

    def ==(other)
      Take        === other          and
      relation    ==  other.relation and
      taken       ==  other.taken
    end
  end
end