Class: Atatus::Config::RegexpList Private

Inherits:
Object
  • Object
show all
Defined in:
lib/atatus/config/regexp_list.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.

Instance Method Summary collapse

Instance 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.



24
25
26
27
# File 'lib/atatus/config/regexp_list.rb', line 24

def call(value)
  value = value.is_a?(String) ? value.split(',') : Array(value)
  value.map { |p| Regexp.new(p) }
end