Class: Hanami::Slice::RoutesHelper Private
- Inherits:
-
Object
- Object
- Hanami::Slice::RoutesHelper
- Defined in:
- lib/hanami/slice/routes_helper.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Hanami app routes helpers
An instance of this class will be registered with slice (at the “routes” key). You can use it to access the route helpers for your app.
Instance Method Summary collapse
-
#initialize(router) ⇒ RoutesHelper
constructor
private
A new instance of RoutesHelper.
- #path ⇒ Object private
- #url ⇒ Object private
Constructor Details
#initialize(router) ⇒ RoutesHelper
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 RoutesHelper.
18 19 20 |
# File 'lib/hanami/slice/routes_helper.rb', line 18 def initialize(router) @router = router end |
Instance Method Details
#path ⇒ 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.
23 24 25 |
# File 'lib/hanami/slice/routes_helper.rb', line 23 def path(...) router.path(...) end |
#url ⇒ 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.
28 29 30 |
# File 'lib/hanami/slice/routes_helper.rb', line 28 def url(...) router.url(...) end |