struct LuckyRouter::Fragment::DynamicFragment(T)
- LuckyRouter::Fragment::DynamicFragment(T)
- Struct
- Value
- Object
Overview
This is a simple wrapper around Fragment, that includes holds the
#name
of the dynamic fragment so it can be used to populate the params hash.
Defined in:
lucky_router/fragment.crConstructors
Instance Method Summary
- #fragment
-
#name
The name of the dynamic part For example, if you have the path "/users/:id" the dynamic part name would be "id"
Constructor Detail
Instance Method Detail
def name
#
The name of the dynamic part For example, if you have the path "/users/:id" the dynamic part name would be "id"