struct ActionController::Route::Param::ConvertChar
- ActionController::Route::Param::ConvertChar
- ActionController::Route::Param::Conversion
- Struct
- Value
- Object
Defined in:
action-controller/router/route_params.crInstance 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.
Instance methods inherited from struct ActionController::Route::Param::Conversion
convert(raw : String)
convert,
initialize
initialize
Constructor methods inherited from struct ActionController::Route::Param::Conversion
new
new
Instance Method Detail
def convert(raw : String)
#
Description copied from struct ActionController::Route::Param::Conversion
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