abstract struct ActionController::Route::Param::Conversion
- ActionController::Route::Param::Conversion
- Struct
- Value
- Object
Overview
The method for building in support of different route params
Defined in:
action-controller/router/route_params.crConstructors
Instance Method Summary
-
#convert(raw : String)
convert should typically return nil if the conversion failed this allows support for Union types, however may not be practical or desirable for most.
- #initialize
Constructor Detail
Instance Method Detail
abstract
def convert(raw : String)
#
convert should typically return nil if the conversion failed this allows support for Union types, however may not be practical or desirable for most.
Nilable Unions against a single type that raises an error is supported