Sha256: e290de214d3f9229538c289f53d6ab0f090f610ba042c0e950542b20453b0a0b
Contents?: true
Size: 350 Bytes
Versions: 33
Compression:
Stored size: 350 Bytes
Contents
class Rack::App::Middlewares::Hooks::Base def initialize(app, hook_block) @app = app @hook_block = hook_block end def call(env) raise(NotImplementedError) end protected def execute_hook(env) catch :rack_response do env[Rack::App::Constants::ENV::HANDLER].instance_exec(&@hook_block) nil end end end
Version data entries
33 entries across 33 versions & 2 rubygems