class RuboCop::Cop::RSpec::Base
@abstract parent class to RSpec
cops
Public Class Methods
Source
# File lib/rubocop/cop/rspec/base.rb, line 13 def self.inherited(subclass) # rubocop:disable Lint/MissingSuper RuboCop::Cop::Base.inherited(subclass) end
Invoke the original inherited hook so our cops are recognized
Public Instance Methods
Source
# File lib/rubocop/cop/rspec/base.rb, line 19 def on_new_investigation super RuboCop::RSpec::Language.config = config['RSpec']['Language'] end
Set the config for dynamic DSL configuration-aware helpers that have no other means of accessing the configuration.
Calls superclass method