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-6.1.7.7 lib/arel/nodes/comment.rb
activerecord-7.1.3 lib/arel/nodes/comment.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/arel/nodes/comment.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activerecord-7.0.2.3/lib/arel/nodes/comment.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activerecord-7.0.3.1/lib/arel/nodes/comment.rb
activerecord-7.1.2 lib/arel/nodes/comment.rb
activerecord-7.1.1 lib/arel/nodes/comment.rb
activerecord-7.1.0 lib/arel/nodes/comment.rb
activerecord-7.1.0.rc2 lib/arel/nodes/comment.rb
activerecord-7.1.0.rc1 lib/arel/nodes/comment.rb
activerecord-7.1.0.beta1 lib/arel/nodes/comment.rb
activerecord-7.0.8 lib/arel/nodes/comment.rb
activerecord-7.0.7.2 lib/arel/nodes/comment.rb
activerecord-6.1.7.6 lib/arel/nodes/comment.rb
activerecord-7.0.7.1 lib/arel/nodes/comment.rb
activerecord-6.1.7.5 lib/arel/nodes/comment.rb
activerecord-7.0.7 lib/arel/nodes/comment.rb
activerecord-7.0.6 lib/arel/nodes/comment.rb
activerecord-7.0.5.1 lib/arel/nodes/comment.rb
activerecord-6.1.7.4 lib/arel/nodes/comment.rb