module Roda::RodaPlugins::OptimizedStringMatchers::RequestMethods

def is_exactly(s)

Optimized version of is that only supports a single string.

def is_exactly(s)
  rp = @remaining_path
  if _match_string(s)
    if @remaining_path.empty?
      always{yield}
    else
      @remaining_path = rp
    end
  end
end

def on_branch(s)

Optimized version of on that only supports a single string.

def on_branch(s)
  always{yield} if _match_string(s)
end