Method: Hanami::Slice::Routing::Middleware::Stack#to_hash
- Defined in:
- lib/hanami/slice/routing/middleware/stack.rb
#to_hash ⇒ Object
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.
133 134 135 136 137 |
# File 'lib/hanami/slice/routing/middleware/stack.rb', line 133 def to_hash @stack.each_with_object({}) do |(path, _), result| result[path] = stack_for(path) end end |