Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
amber_router
v0.4.4
Amber
Router
FixedSegment
GlobMatch
GlobSegment
Parsers
OptionalSegmentResolver
RoutedResult
RouteSet
Segment
TerminalSegment
VariableSegment
Built with Crystal 1.9.2
2023-10-08 12:56:48 UTC
class
Amber::Router::VariableSegment(T)
Amber::Router::VariableSegment(T)
Amber::Router::Segment(T)
Reference
Object
Defined in:
amber_router/segments/variable_segment.cr
Constructors
.new
(segment, pattern : Regex | Nil =
nil
)
Instance Method Summary
#match?
(segment : String) : Bool
#parameter
: String
#parametric?
: Bool
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, pattern : Regex | Nil =
nil
)
#
[
View source
]
Instance Method Detail
def
match?
(segment : String) : Bool
#
[
View source
]
def
parameter
: String
#
[
View source
]
def
parametric?
: Bool
#
[
View source
]