class Amber::Router::FixedSegment(T)

Overview

Represents a must-match url segment.

In the url /products/:23/*, the first segment, products is a fixed segment.

Defined in:

amber_router/segments/fixed_segment.cr

Constructors

Instance methods inherited from class Amber::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 Amber::Router::Segment(T)

new(segment : String) new

Constructor Detail

def self.new(segment) #

[View source]