class Maze::Router::GlobSegment(T)

Overview

Represents a "match anything" url segment.

In the url /products/:23/∗, the first segment, ∗ is a glob segment.

Defined in:

maze/router/segments/glob_segment.cr

Constructors

Instance Method Summary

Instance methods inherited from class Maze::Router::Segment(T)

formatted_s(*, ts = 0) formatted_s, literal_match?(curious_segment : String) : Bool literal_match?, match?(curious_segment : String) : Bool match?, parameter : String parameter, parametric? : Bool parametric?, route_set : RouteSet(T) route_set, route_set=(route_set : RouteSet(T)) route_set=, segment : String segment, segment=(segment : String) segment=

Constructor methods inherited from class Maze::Router::Segment(T)

new(segment : String) new

Class methods inherited from class Maze::Router::Segment(T)

type_for(segment : String) type_for

Constructor Detail

def self.new(segment) #

[View source]

Instance Method Detail

def match?(curious_segment : String) #

[View source]
def parameter #

[View source]
def parametric? #

[View source]