aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/lib/arel/nodes/values_list.rb
blob: 27109848e4b1a2b0ec5222a7d103750ca43d351f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                             
 
                         







                           




                  
                     



                                    


       
# frozen_string_literal: true

module Arel # :nodoc: all
  module Nodes
    class ValuesList < Node
      attr_reader :rows

      def initialize(rows)
        @rows = rows
        super()
      end

      def hash
        @rows.hash
      end

      def eql?(other)
        self.class == other.class &&
          self.rows == other.rows
      end
      alias :== :eql?
    end
  end
end