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