class Airbrake::Config::Validator

def ignored_environment?(config)

Experimental RBS support (using type sampling data from the type_fusion project).

def ignored_environment?: (Airbrake::Config config) -> untyped

This signature was generated using 5 samples from 1 application.

def ignored_environment?(config)
  if config.ignore_environments.any? && config.environment.nil?
    config.logger.warn(
      "#{LOG_LABEL} the 'environment' option is not set, " \
      "'ignore_environments' has no effect",
    )
  end
  return false if config.ignore_environments.none? || !config.environment
  env = config.environment.to_s
  config.ignore_environments.any? do |pattern|
    pattern.is_a?(Regexp) ? env.match(pattern) : env == pattern.to_s
  end
end