Sha256: c7707ca31a40971dbb99a94de64d2c2cfcd1e1f5d12413b14ab0ed887b14aedf

Contents?: true

Size: 388 Bytes

Versions: 3

Compression:

Stored size: 388 Bytes

Contents

# 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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activerecord-6.0.0.beta3 lib/arel/nodes/values_list.rb
activerecord-6.0.0.beta2 lib/arel/nodes/values_list.rb
activerecord-6.0.0.beta1 lib/arel/nodes/values_list.rb