Class: Hanami::Configuration::Middleware

Inherits:
Object
  • Object
show all
Defined in:
lib/hanami/ruby3/hanami/configuration/middleware.rb

Instance Method Summary collapse

Instance Method Details

#use(middleware, *args, **kwargs, &blk) ⇒ Object



4
5
6
# File 'lib/hanami/ruby3/hanami/configuration/middleware.rb', line 4

def use(middleware, *args, **kwargs, &blk)
  @middleware.push([middleware, args, kwargs, blk])
end