lib/pluggy/routing.rb
def matches_uri?(uri, **_opts)
        return true if uri.nil?
        return @uri == format_uri(uri) unless @pattern.respond_to? :match
        @pattern.match(format_uri(uri))
      end
# A helper method for {#matches?}. It returns true when URI is nil to
# play nice with {#matches?}. If no matcher is provided, it will look
# for an exact match, otherwise it will try to use the matcher.
#
# @param [#to_s] uri The URI to check against the current route.
A helper method for {#matches?}. It returns true when URI is nil to
play nice with {#matches?}. If no matcher is provided, it will look
for an exact match, otherwise it will try to use the matcher.
A helper method for { #matches? } . It returns true when URI is nil to play nice with { #matches? } . If no matcher is provided it will look for an exact match otherwise it will try to use the matcher .
def matches_uri?(uri, **_opts)
        return true if uri.nil?
        return @uri == format_uri(uri) unless @pattern.respond_to? :match
        @pattern.match(format_uri(uri))
      end
def matches_uri? ( uri , ** _opts ) return true if uri . nil? return @uri == format_uri ( uri ) unless @pattern . respond_to? :match @pattern . match ( format_uri ( uri ) ) end
A helper method for {#matches?}.
A helper method for { #matches? } .
uri
_opts
uri The URI to check against the current route.
uri The URI to check against the current route .