Sha256: 34a1eadef6973a3ecf571512ffa20ca37c1a38dba91dda26b6f51c21dff24e05

Contents?: true

Size: 504 Bytes

Versions: 150

Compression:

Stored size: 504 Bytes

Contents

# frozen_string_literal: true

module Arel # :nodoc: all
  module Nodes
    class Comment < Arel::Nodes::Node
      attr_reader :values

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

      def initialize_copy(other)
        super
        @values = @values.clone
      end

      def hash
        [@values].hash
      end

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

Version data entries

150 entries across 145 versions & 12 rubygems

Version Path
activerecord-8.0.0 lib/arel/nodes/comment.rb
activerecord-7.2.2 lib/arel/nodes/comment.rb
activerecord-7.1.5 lib/arel/nodes/comment.rb
activerecord-8.0.0.rc2 lib/arel/nodes/comment.rb
activerecord-7.2.1.2 lib/arel/nodes/comment.rb
activerecord-7.1.4.2 lib/arel/nodes/comment.rb
activerecord-7.0.8.6 lib/arel/nodes/comment.rb
activerecord-6.1.7.10 lib/arel/nodes/comment.rb
activerecord-8.0.0.rc1 lib/arel/nodes/comment.rb
activerecord-6.1.7.9 lib/arel/nodes/comment.rb
activerecord-7.2.1.1 lib/arel/nodes/comment.rb
activerecord-7.1.4.1 lib/arel/nodes/comment.rb
activerecord-7.0.8.5 lib/arel/nodes/comment.rb
activerecord-8.0.0.beta1 lib/arel/nodes/comment.rb
omg-activerecord-8.0.0.alpha9 lib/arel/nodes/comment.rb
omg-activerecord-8.0.0.alpha8 lib/arel/nodes/comment.rb
omg-activerecord-8.0.0.alpha7 lib/arel/nodes/comment.rb
omg-activerecord-8.0.0.alpha4 lib/arel/nodes/comment.rb
omg-activerecord-8.0.0.alpha3 lib/arel/nodes/comment.rb
omg-activerecord-8.0.0.alpha2 lib/arel/nodes/comment.rb