Sha256: 93071b10f1873604cbc2ac26a3a2534462609f7180e1f8dff4eee9529dfa4b1f

Contents?: true

Size: 515 Bytes

Versions: 60

Compression:

Stored size: 515 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module RSpec
    # Wrapper for RSpec DSL methods
    class Concept
      extend RuboCop::NodePattern::Macros
      extend Language::NodePattern
      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

60 entries across 54 versions & 4 rubygems

Version Path
rubocop-rspec-2.23.0 lib/rubocop/rspec/concept.rb
mlh-rubocop-config-1.0.2 vendor/bundle/ruby/3.2.0/gems/rubocop-rspec-2.22.0/lib/rubocop/rspec/concept.rb
fablicop-1.10.3 vendor/bundle/ruby/3.2.0/gems/rubocop-rspec-2.22.0/lib/rubocop/rspec/concept.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rubocop-rspec-2.12.1/lib/rubocop/rspec/concept.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rubocop-rspec-2.13.1/lib/rubocop/rspec/concept.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rubocop-rspec-2.22.0/lib/rubocop/rspec/concept.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rubocop-rspec-2.9.0/lib/rubocop/rspec/concept.rb
fablicop-1.10.2 vendor/bundle/ruby/3.2.0/gems/rubocop-rspec-2.22.0/lib/rubocop/rspec/concept.rb
rubocop-rspec-2.22.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-2.21.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-2.20.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-2.19.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-2.18.1 lib/rubocop/rspec/concept.rb
rubocop-rspec-2.18.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-2.17.1 lib/rubocop/rspec/concept.rb
rubocop-rspec-2.17.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-2.16.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-2.15.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-2.14.2 lib/rubocop/rspec/concept.rb
rubocop-rspec-2.14.1 lib/rubocop/rspec/concept.rb