Class: Wouter::Util

Inherits:
Object
  • Object
show all
Defined in:
lib/wouter/util.rb

Overview

‘Wouter::Util` provides some common untility methods.

Class Method Summary collapse

Class Method Details

.not_foundObject

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