Sha256: 69900eefa3de79a015978b0f899c3a0caefd4de12ea6f90788ee93b1bdac816b

Contents?: true

Size: 286 Bytes

Versions: 8

Compression:

Stored size: 286 Bytes

Contents

class Rack::App::Middlewares::Hooks::After

  def initialize(app, hook_block)
    @app = app
    @hook_block = hook_block
  end

  def call(env)
    response = @app.call(env)
    env[Rack::App::Constants::ENV::REQUEST_HANDLER].instance_exec(&@hook_block)
    return response
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rack-app-5.5.1 lib/rack/app/middlewares/hooks/after.rb
rack-app-5.4.0 lib/rack/app/middlewares/hooks/after.rb
rack-app-5.3.2 lib/rack/app/middlewares/hooks/after.rb
rack-app-5.3.1 lib/rack/app/middlewares/hooks/after.rb
rack-app-5.3.0 lib/rack/app/middlewares/hooks/after.rb
rack-app-5.2.0 lib/rack/app/middlewares/hooks/after.rb
rack-app-5.1.0 lib/rack/app/middlewares/hooks/after.rb
rack-app-5.0.0 lib/rack/app/middlewares/hooks/after.rb