Sha256: 663f5ede00e0f248ba54aabad94df7d72d16b37d6459e4b0fece290fbd97031d

Contents?: true

Size: 209 Bytes

Versions: 1

Compression:

Stored size: 209 Bytes

Contents

module HeimdallApm
  class UriMatcher
    def initialize(prefixes)
      @prefixes = Array(prefixes)
    end

    def match?(uri)
      @prefixes.empty? ? false : uri.start_with?(*@prefixes)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
heimdall_apm-0.1.3 lib/heimdall_apm/uri_matcher.rb