Class: Expressr::Listeners::Response

Inherits:
Noder::Events::Listeners::Base
  • Object
show all
Defined in:
lib/expressr/listeners/response.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



4
5
6
7
8
# File 'lib/expressr/listeners/response.rb', line 4

def call(env)
  env[:response] = Expressr::Response.new(env)
  callback.call(env) if callback
  env
end