Module: RuboCop::Cop::IgnoredMethods::Config

Defined in:
lib/rubocop/cop/mixin/ignored_methods.rb

Overview

Configuration for IgnoredMethods. It is added to classes that include the module so that configuration can be set using the `ignored_methods` class macro.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#deprecated_keyObject

Returns the value of attribute deprecated_key


14
15
16
# File 'lib/rubocop/cop/mixin/ignored_methods.rb', line 14

def deprecated_key
  @deprecated_key
end

Instance Method Details

#ignored_methods(**config) ⇒ Object


16
17
18
# File 'lib/rubocop/cop/mixin/ignored_methods.rb', line 16

def ignored_methods(**config)
  self.deprecated_key = config[:deprecated_key]
end