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 :
Float64.
class) : Float64 |
Nil
#
def self.
parse(param :
String, klass :
Time.
class) : Time |
Nil
#
def self.
parse(param : Array(
String), klass :
Array(
T).
class) : Array(T) |
Nil forall T
#