Method: Sinatra::Base.add_filter
- Defined in:
- lib/sinatra/base.rb
.add_filter(type, path = /.*/, **options, &block) ⇒ Object
add a filter
1500 1501 1502 |
# File 'lib/sinatra/base.rb', line 1500 def add_filter(type, path = /.*/, **, &block) filters[type] << compile!(type, path, block, **) end |