class LuckyRouter::MatchFinder(T)

Defined in:

lucky_router/match_finder.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(fragment : LuckyRouter::Fragment(T), parts : Array(String), params : Hash(String, String) = {} of String => String) #

[View source]

Instance Method Detail

def run : Match(T) | NoMatch #

This looks for a matching fragment for the given parts and returns NoMatch if one is not found


[View source]