Module: Roda::RodaPlugins::NotFound::ClassMethods
- Defined in:
- lib/roda/plugins/not_found.rb
Instance Method Summary collapse
-
#not_found(&block) ⇒ Object
Install the given block as the not_found handler.
Instance Method Details
#not_found(&block) ⇒ Object
Install the given block as the not_found handler.
44 45 46 |
# File 'lib/roda/plugins/not_found.rb', line 44 def not_found(&block) status_handler(404, &block) end |