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
-
#deprecated_key ⇒ Object
Returns the value of attribute deprecated_key.
Instance Method Summary collapse
Instance Attribute Details
#deprecated_key ⇒ Object
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 |