Sha256: 1f275ca9bdcd629138c0d6f53965e2585a3d541af62569686b5db8b5432191f0

Contents?: true

Size: 507 Bytes

Versions: 44

Compression:

Stored size: 507 Bytes

Contents

# frozen_string_literal: true

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

      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

44 entries across 44 versions & 1 rubygems

Version Path
rubocop-rspec-2.0.0.pre lib/rubocop/rspec/concept.rb
rubocop-rspec-1.44.1 lib/rubocop/rspec/concept.rb
rubocop-rspec-1.44.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-1.43.2 lib/rubocop/rspec/concept.rb
rubocop-rspec-1.43.1 lib/rubocop/rspec/concept.rb
rubocop-rspec-1.43.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-1.42.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-1.41.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-1.40.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-1.39.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-1.38.1 lib/rubocop/rspec/concept.rb
rubocop-rspec-1.38.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-1.37.1 lib/rubocop/rspec/concept.rb
rubocop-rspec-1.37.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-1.36.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-1.35.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-1.34.1 lib/rubocop/rspec/concept.rb
rubocop-rspec-1.34.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-1.33.0 lib/rubocop/rspec/concept.rb
rubocop-rspec-1.32.0 lib/rubocop/rspec/concept.rb