module Roda::RodaPlugins::Base::RequestMethods

def _match_string(str)

request path is a slash (indicating a new segment).
request path ends with the string or if the next character in the
Match the given string to the request path. Matches only if the
def _match_string(str)
  rp = @remaining_path
  if rp.start_with?("/#{str}")
    last = str.length + 1
    case rp[last]
    when "/"
      @remaining_path = rp[last, rp.length]
    when nil
      @remaining_path = ""
    end
  end
end