Method: Ue#call
- Defined in:
- lib/ue/ue.rb
#call(env) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/ue/ue.rb', line 8 def call(env) @request = Rack::Request.new(env) @response = Rack::Response.new @matched = false instance_eval(&@block) @response.status = 404 unless @matched @response.finish end |