Sha256: 07748d185666aba6a978bc83868befb6d1796146ac92a7373749b16b2030edb2

Contents?: true

Size: 480 Bytes

Versions: 13

Compression:

Stored size: 480 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module RSpec
    # Wrapper for RSpec DSL methods
    class Concept
      extend RuboCop::NodePattern::Macros
      include Language

      def initialize(node)
        @node = node
      end

      def eql?(other)
        node == other.node
      end

      alias == eql?

      def hash
        [self.class, node].hash
      end

      def to_node
        node
      end

      protected

      attr_reader :node
    end
  end
end

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/rubocop-rspec-3.0.3/lib/rubocop/rspec/concept.rb
rubocop-rspec-3.3.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-3.2.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-3.1.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-3.0.5 lib/rubocop/rspec/concept.rb
rubocop-rspec-3.0.4 lib/rubocop/rspec/concept.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/rubocop-rspec-3.0.1/lib/rubocop/rspec/concept.rb
rubocop-rspec-3.0.3 lib/rubocop/rspec/concept.rb
rubocop-rspec-3.0.2 lib/rubocop/rspec/concept.rb
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/rubocop-rspec-3.0.1/lib/rubocop/rspec/concept.rb
rubocop-rspec-3.0.1 lib/rubocop/rspec/concept.rb
rubocop-rspec-3.0.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-3.0.0.pre lib/rubocop/rspec/concept.rb