Method: RuboCop::Cop::Base.inherited

Defined in:
lib/rubocop/cop/base.rb

.inherited(subclass) ⇒ Object

[View source]

74
75
76
77
78
# File 'lib/rubocop/cop/base.rb', line 74

def self.inherited(subclass)
  super
  subclass.instance_variable_set(:@gem_requirements, gem_requirements.dup)
  Registry.global.enlist(subclass)
end