module Lucky::ParamParser

Defined in:

lucky/param_parser.cr

Constant Summary

TIME_FORMATS = [Time::Format::ISO_8601_DATE_TIME, Time::Format::RFC_2822, Time::Format::RFC_3339, Time::Format.new("%Y-%m-%dT%H:%M:%S", Time::Location::UTC), Time::Format.new("%Y-%m-%dT%H:%M", Time::Location::UTC), Time::Format::HTTP_DATE, Time::Format::ISO_8601_DATE, Time::Format::ISO_8601_TIME]

Class Method Summary

Class Method Detail

def self.parse(param : String, klass : String.class) : String #

[View source]
def self.parse(param : String, klass : Int16.class) : Int16? #

[View source]
def self.parse(param : String, klass : Int32.class) : Int32? #

[View source]
def self.parse(param : String, klass : Int64.class) : Int64? #

[View source]
def self.parse(param : String, klass : Float64.class) : Float64? #

[View source]
def self.parse(param : String, klass : Bool.class) : Bool? #

[View source]
def self.parse(param : String, klass : UUID.class) : UUID? #

[View source]
def self.parse(param : String, klass : Time.class) : Time? #

[View source]
def self.parse(param : Array(String), klass : Array(T).class) : Array(T)? forall T #

[View source]