Method: Hanami::Routing::Route#nested_router

Defined in:
lib/hanami/routing/route.rb

#nested_routerObject

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.

Introspect the given route to understand if there is a wrapped Hanami::Router

Since:

  • 0.2.0



52
53
54
# File 'lib/hanami/routing/route.rb', line 52

def nested_router
  dest.routes if dest.respond_to?(:routes)
end