Method: Hanami::Slice::Routing::Middleware::Stack#initialize
- Defined in:
- lib/hanami/slice/routing/middleware/stack.rb
#initialize ⇒ Stack
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Stack.
57 58 59 60 |
# File 'lib/hanami/slice/routing/middleware/stack.rb', line 57 def initialize @stack = Hash.new { |hash, key| hash[key] = [] } @namespaces = [Hanami::Middleware] end |