Class: Wouter::Util
- Inherits:
-
Object
- Object
- Wouter::Util
- Defined in:
- lib/wouter/util.rb
Overview
‘Wouter::Util` provides some common untility methods.
Class Method Summary collapse
-
.not_found ⇒ Object
HTTP 404 Not Found.
Class Method Details
.not_found ⇒ Object
HTTP 404 Not Found
7 8 9 10 11 12 |
# File 'lib/wouter/util.rb', line 7 def self.not_found resp = Rack::Response.new resp.status = 404 resp.write 'Not Found' resp end |