Class: Rack::NotFound
- Inherits:
-
Object
- Object
- Rack::NotFound
- Defined in:
- lib/rack/contrib/not_found.rb
Overview
Rack::NotFound is a default endpoint. Initialize with the path to your 404 page.
Constant Summary collapse
- F =
::File
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(path) ⇒ NotFound
constructor
A new instance of NotFound.
Constructor Details
Instance Method Details
#call(env) ⇒ Object
14 15 16 |
# File 'lib/rack/contrib/not_found.rb', line 14 def call(env) [404, {'Content-Type' => 'text/html', 'Content-Length' => @length}, [@content]] end |