struct

ActionController::Route::Param::Conversion

Inherits Struct < Value < Object

The method for building in support of different route params

Constructors

Instance methods

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

Source
initialize
Source