Method: Sinatra::Base.after
- Defined in:
- lib/sinatra/base.rb
.after(path = /.*/, **options, &block) ⇒ Object
Define an after filter; runs after all requests within the same context as route handlers and may access/modify the request and response.
1495 1496 1497 |
# File 'lib/sinatra/base.rb', line 1495 def after(path = /.*/, **, &block) add_filter(:after, path, **, &block) end |