Class: Evilution::Config::Validators::IgnorePatterns Private

Inherits:
Base
  • Object
show all
Defined in:
lib/evilution/config/validators/ignore_patterns.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.call(value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



6
7
8
9
10
11
12
13
14
15
# File 'lib/evilution/config/validators/ignore_patterns.rb', line 6

def self.call(value)
  patterns = Array(value)
  patterns.each do |pattern|
    unless pattern.is_a?(String)
      raise Evilution::ConfigError,
            "ignore_patterns must be an array of strings, got #{pattern.class} (#{pattern.inspect})"
    end
  end
  patterns
end