Sha256: f12f2e1c4016b11d9d2bf40cebfd398c3d2e2905dc76675fe9140658577a81da

Contents?: true

Size: 372 Bytes

Versions: 4

Compression:

Stored size: 372 Bytes

Contents

# frozen_string_literal: true
module Arel
  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

4 entries across 4 versions & 3 rubygems

Version Path
spiral_form-0.1.1 vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/values_list.rb
spiral_form-0.1.0 vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/values_list.rb
nullifyable-0.1.0 vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/values_list.rb
arel-9.0.0 lib/arel/nodes/values_list.rb