Class: Rack::App::Middlewares::Hooks::Base
- Inherits:
-
Object
- Object
- Rack::App::Middlewares::Hooks::Base
- Defined in:
- lib/rack/app/middlewares/hooks/base.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, hook_block) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(app, hook_block) ⇒ Base
Returns a new instance of Base.
3 4 5 6 |
# File 'lib/rack/app/middlewares/hooks/base.rb', line 3 def initialize(app, hook_block) @app = app @hook_block = hook_block end |
Instance Method Details
#call(env) ⇒ Object
8 9 10 |
# File 'lib/rack/app/middlewares/hooks/base.rb', line 8 def call(env) raise(NotImplementedError) end |