module RuboCop::Cop::AllowedMethods

def allowed_method?(name)

Other tags:
    Api: - public
def allowed_method?(name)
  allowed_methods.include?(name.to_s)
end

def allowed_methods

Other tags:
    Api: - public
def allowed_methods
  if cop_config_deprecated_values.any?(Regexp)
    cop_config_allowed_methods
  else
    cop_config_allowed_methods + cop_config_deprecated_values
  end
end

def cop_config_allowed_methods

def cop_config_allowed_methods
  @cop_config_allowed_methods ||= Array(cop_config.fetch('AllowedMethods', []))
end

def cop_config_deprecated_values

def cop_config_deprecated_values
  @cop_config_deprecated_values ||=
    Array(cop_config.fetch('IgnoredMethods', [])) +
    Array(cop_config.fetch('ExcludedMethods', []))
end