Method: Roda::RodaPlugins::MiddlewareStack::Stack#after

Defined in:
lib/roda/plugins/middleware_stack.rb

#after(&block) ⇒ Object

Return a StackPosition representing the position after the middleware where the block returns true. Yields the middleware and any middleware arguments given, but not the middleware block. It the block never returns true, returns a StackPosition that will insert new middleware at the end of the stack.



52
53
54
# File 'lib/roda/plugins/middleware_stack.rb', line 52

def after(&block)
  handle(1, &block)
end