Module: ActionTree::Components::Rack::NodeMethods

Defined in:
lib/action_tree/components/rack.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/action_tree/components/rack.rb', line 17

def call(env)
  request   = Request.new(env)
  response  = Response.new

  response.finish do

  end

  response.write match(
    Rack::Utils.unescape(request.path_info)
    ).run(request.request_method.to_sym, {
      :request => request,
      :response => response,
      :get => request.GET,
      :post => request.POST
      })

  response.finish
end