Class: Rack::App::Middlewares::Hooks::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/app/middlewares/hooks/base.rb

Direct Known Subclasses

After, Before

Instance Method Summary collapse

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

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/rack/app/middlewares/hooks/base.rb', line 8

def call(env)
  raise(NotImplementedError)
end