struct LuckyRouter::Fragment::DynamicFragment(T)

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, fragment : Fragment(T)) #

[View source]

Instance Method Detail

def fragment #

[View source]
def name #

The name of the dynamic part For example, if you have the path "/users/:id" the dynamic part name would be "id"


[View source]