class Roda::RodaPlugins::MiddlewareStack::Stack

def handle(offset)

Internals of before and after.
def handle(offset)
  @middleware.each_with_index do |(m, _), i|
    if yield(*m)
      return StackPosition.new(@app, @middleware, i+offset)
    end
  end
  StackPosition.new(@app, @middleware, @middleware.length)
end