module Roda::RodaPlugins::Base::RequestClassMethods

def cached_matcher(obj)

basic pattern to a pattern that does not match partial segments.
not already cached, yield to get the basic pattern, and convert the
Return the cached pattern for the given object. If the object is
def cached_matcher(obj)
  cache = @match_pattern_cache
  unless pattern = cache[obj]
    pattern = cache[obj] = consume_pattern(yield)
  end
  pattern
end