Sha256: 21a51fed935fe159a8353df119dc3f0ea80760250314c12768fb240a444a0146

Contents?: true

Size: 264 Bytes

Versions: 11

Compression:

Stored size: 264 Bytes

Contents

# frozen_string_literal: true

module ElasticAPM
  class Config
    # @api private
    class RegexpList
      def call(value)
        value = value.is_a?(String) ? value.split(',') : Array(value)
        value.map(&Regexp.method(:new))
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
elastic-apm-3.6.0 lib/elastic_apm/config/regexp_list.rb
elastic-apm-3.5.0 lib/elastic_apm/config/regexp_list.rb
elastic-apm-3.4.0 lib/elastic_apm/config/regexp_list.rb
elastic-apm-3.3.0 lib/elastic_apm/config/regexp_list.rb
elastic-apm-3.2.0 lib/elastic_apm/config/regexp_list.rb
elastic-apm-3.1.0 lib/elastic_apm/config/regexp_list.rb
elastic-apm-3.0.0 lib/elastic_apm/config/regexp_list.rb
elastic-apm-2.12.0 lib/elastic_apm/config/regexp_list.rb
elastic-apm-2.11.0 lib/elastic_apm/config/regexp_list.rb
elastic-apm-2.10.1 lib/elastic_apm/config/regexp_list.rb
elastic-apm-2.10.0 lib/elastic_apm/config/regexp_list.rb