module Popcorn::Cast

Defined in:

popcorn/cast.cr
popcorn/cast/array.cr
popcorn/cast/bool.cr
popcorn/cast/float.cr
popcorn/cast/hash.cr
popcorn/cast/int.cr
popcorn/cast/json_any.cr
popcorn/cast/named_tuple.cr
popcorn/cast/nil.cr
popcorn/cast/string.cr
popcorn/cast/symbol.cr
popcorn/cast/time.cr
popcorn/cast/yaml_any.cr

Instance Method Summary

Macro Summary

Instance Method Detail

def cast(raw, other) #

Returns the target value represented by given data type.


[View source]
def cast?(raw, other) #

Returns the target value or Nil represented by given data type.


[View source]
def cast_error!(source : String, other : String) #

Raise a TypeCastError exception.


[View source]
def to_array(raw : Array, value_type : T.class = String) forall T #

Returns the Array value represented by given Array type, else raise a TypeCastError exception.


[View source]
def to_array(raw : Bool, value_type : T.class = String) forall T #

Returns the Array value represented by given Bool type, else raise a TypeCastError exception.


[View source]
def to_array(raw : Float, value_type : T.class = String) forall T #

Returns the Array value represented by given Float type, else raise a TypeCastError exception.


[View source]
def to_array(raw : Hash, value_type : T.class = String) forall T #

Returns the Array value represented by given Hash type, else raise a TypeCastError exception.


[View source]
def to_array(raw : Int, value_type : T.class = String) forall T #

Returns the Array value represented by given Int type, else raise a TypeCastError exception.


[View source]
def to_array(raw : JSON::Any, value_type : T.class = String) forall T #

Returns the Array value represented by given JSON::Any type, else raise a TypeCastError exception.


[View source]
def to_array(raw : NamedTuple, value_type : T.class = String) forall T #

Returns the Array value represented by given NamedTuple type, else raise a TypeCastError exception.


[View source]
def to_array(raw : Time, value_type : T.class = String) forall T #

Returns the Array value represented by given Time type, else raise a TypeCastError exception.


[View source]
def to_array(raw : String, value_type : T.class = String) forall T #

Returns the Array value represented by given String type, else raise a TypeCastError exception.


[View source]
def to_array(raw : Symbol, value_type : T.class = String) forall T #

Returns the Array value represented by given Symbol type, else raise a TypeCastError exception.


[View source]
def to_array(raw : YAML::Any, value_type : T.class = String) forall T #

Returns the Array value represented by given YAML::Any type, else raise a TypeCastError exception.


[View source]
def to_array?(raw : Array, value_type : T.class = String) forall T #

Returns the Array or Nil value represented by given Array type.


[View source]
def to_array?(raw : Bool, value_type : T.class = String) forall T #

Returns the Array or Nil value represented by given Bool type.


[View source]
def to_array?(raw : Float, value_type : T.class = String) forall T #

Returns the Array or Nil value represented by given Float type.


[View source]
def to_array?(raw : Hash, value_type : T.class = String) forall T #

Returns the Array or Nil value represented by given Hash type.

Popcorn.to_array?({"a" => "b", "c" => "d"})   # => ["a", "b", "c", "d"]

[View source]
def to_array?(raw : Int, value_type : T.class = String) forall T #

Returns the Array or Nil value represented by given Int type.


[View source]
def to_array?(raw : JSON::Any, value_type : T.class = String) forall T #

Returns the Array or Nil value represented by given JSON::Any type.


[View source]
def to_array?(raw : NamedTuple, value_type : T.class = String) forall T #

Returns the Array or Nil value represented by given NamedTuple type.


[View source]
def to_array?(raw : Time, value_type : T.class = String) forall T #

Returns the Array or Nil value represented by given Time type.


[View source]
def to_array?(raw : String, value_type : T.class = String) forall T #

Returns the Array or Nil value represented by given String type.


[View source]
def to_array?(raw : Symbol, value_type : T.class = String) forall T #

Returns the Array or Nil value represented by given Symbol type.


[View source]
def to_array?(raw : YAML::Any, value_type : T.class = String) forall T #

Returns the Array or Nil value represented by given YAML::Any type.


[View source]
def to_bool(raw : Array) #

Returns the Bool value represented by given Array type, else raise a TypeCastError exception.


[View source]
def to_bool(raw : Bool) #

Returns the Bool value represented by given Bool type, else raise a TypeCastError exception.


[View source]
def to_bool(raw : Float) #

Returns the Bool value represented by given Float type, else raise a TypeCastError exception.


[View source]
def to_bool(raw : Hash) #

Returns the Bool value represented by given Hash type, else raise a TypeCastError exception.


[View source]
def to_bool(raw : Int) #

Returns the Bool value represented by given Int type, else raise a TypeCastError exception.


[View source]
def to_bool(raw : JSON::Any) #

Returns the Bool value represented by given JSON::Any type, else raise a TypeCastError exception.


[View source]
def to_bool(raw : NamedTuple) #

Returns the Bool value represented by given NamedTuple type, else raise a TypeCastError exception.


[View source]
def to_bool(raw : Nil) #

Returns the Bool value represented by given Nil type, else raise a TypeCastError exception.


[View source]
def to_bool(raw : String) #

Returns the Bool value represented by given String type, else raise a TypeCastError exception.


[View source]
def to_bool(raw : Symbol) #

Returns the Bool value represented by given Symbol type, else raise a TypeCastError exception.


[View source]
def to_bool(raw : Time) #

Returns the Bool value represented by given Time type, else raise a TypeCastError exception.


[View source]
def to_bool(raw : YAML::Any) #

Returns the Bool value represented by given YAML::Any type, else raise a TypeCastError exception.


[View source]
def to_bool?(raw : Array) #

Returns the Bool or Nil value represented by given Array type.


[View source]
def to_bool?(raw : Bool) #

Returns the Bool value represented by given Bool type. It accepts true, t, yes, y, on, 1, false, f, no, n, off, 0. Any other value return an error.


[View source]
def to_bool?(raw : Float) #

Returns the Bool or Nil value represented by given Float type. It accepts true, t, yes, y, on, 1, false, f, no, n, off, 0. Any other value return an error.


[View source]
def to_bool?(raw : Hash) #

Returns the Bool or Nil value represented by given data type.


[View source]
def to_bool?(raw : Int) #

Returns the Bool or Nil value represented by given Int type. It accepts true, t, yes, y, on, 1, false, f, no, n, off, 0. Any other value return an error.


[View source]
def to_bool?(raw : JSON::Any) #

Returns the Bool or Nil value represented by given JSON::Any type. It accepts true, t, yes, y, on, 1, false, f, no, n, off, 0. Any other value return an error.


[View source]
def to_bool?(raw : NamedTuple) #

Returns the Bool or Nil value represented by given NamedTuple type.


[View source]
def to_bool?(raw : Nil) #

Returns the Bool value represented by given Nil type. It accepts true, t, yes, y, on, 1, false, f, no, n, off, 0. Any other value return an error.


[View source]
def to_bool?(raw : String) #

Returns the Bool or Nil value represented by given String type. It accepts true, t, yes, y, on, 1, false, f, no, n, off, 0. Any other value return an error.


[View source]
def to_bool?(raw : Symbol) #

Returns the Bool or Nil value represented by given Symbol type. It accepts true, t, yes, y, on, 1, false, f, no, n, off, 0. Any other value return an error.


[View source]
def to_bool?(raw : Time) #

Returns the Nil value represented by given Time type. It accepts true, t, yes, y, on, 1, false, f, no, n, off, 0. Any other value return an error.


[View source]
def to_bool?(raw : YAML::Any) #

Returns the Bool or Nil value represented by given YAML::Any type. It accepts true, t, yes, y, on, 1, false, f, no, n, off, 0. Any other value return an error.


[View source]
def to_float(raw : Array) #

Returns the Float value represented by given Array type, else raise a TypeCastError exception.


[View source]
def to_float(raw : Bool) #

Returns the Float value represented by given Bool type, else raise a TypeCastError exception.


[View source]
def to_float(raw : Float) #

Returns the Float value represented by given Float type, else raise a TypeCastError exception.


[View source]
def to_float(raw : Hash) #

Returns the Float value represented by given Hash type, else raise a TypeCastError exception.


[View source]
def to_float(raw : Int) #

Returns the Float value represented by given Int type, else raise a TypeCastError exception.


[View source]
def to_float(raw : JSON::Any) #

Returns the Float value represented by given JSON::Any type, else raise a TypeCastError exception.


[View source]
def to_float(raw : NamedTuple) #

Returns the Float value represented by given NamedTuple type, else raise a TypeCastError exception.


[View source]
def to_float(raw : Nil) #

Returns the Float value represented by given Nil type, else raise a TypeCastError exception.


[View source]
def to_float(raw : String) #

Returns the Float value represented by given String type, else raise a TypeCastError exception.


[View source]
def to_float(raw : Symbol) #

Returns the Float value represented by given Symbol type, else raise a TypeCastError exception.


[View source]
def to_float(raw : Time) #

Returns the Float value represented by given Time type, else raise a TypeCastError exception.


[View source]
def to_float(raw : YAML::Any) #

Returns the Float value represented by given YAML::Any type, else raise a TypeCastError exception.


[View source]
def to_float32(raw : Array) #

Returns the Float32 value represented by given Array type, else raise a TypeCastError exception.


[View source]
def to_float32(raw : Bool) #

Returns the Float32 value represented by given Bool type, else raise a TypeCastError exception.


[View source]
def to_float32(raw : Float) #

Returns the Float32 value represented by given Float type, else raise a TypeCastError exception.


[View source]
def to_float32(raw : Hash) #

Returns the Float32 value represented by given Hash type, else raise a TypeCastError exception.


[View source]
def to_float32(raw : Int) #

Returns the Float32 value represented by given Int type, else raise a TypeCastError exception.


[View source]
def to_float32(raw : JSON::Any) #

Returns the Float32 value represented by given JSON::Any type, else raise a TypeCastError exception.


[View source]
def to_float32(raw : NamedTuple) #

Returns the Float32 value represented by given NamedTuple type, else raise a TypeCastError exception.


[View source]
def to_float32(raw : Nil) #

Returns the Float32 value represented by given Nil type, else raise a TypeCastError exception.


[View source]
def to_float32(raw : String) #

Returns the Float32 value represented by given String type, else raise a TypeCastError exception.


[View source]
def to_float32(raw : Symbol) #

Returns the Float32 value represented by given Symbol type, else raise a TypeCastError exception.


[View source]
def to_float32(raw : Time) #

Returns the Float32 value represented by given Time type, else raise a TypeCastError exception.


[View source]
def to_float32(raw : YAML::Any) #

Returns the Float32 value represented by given YAML::Any type, else raise a TypeCastError exception.


[View source]
def to_float32?(raw : Array) #

Returns the Float32 or Nil value represented by given Array type.


[View source]
def to_float32?(raw : Bool) #

Returns the Nil value represented by given Bool type.


[View source]
def to_float32?(raw : Float) #

Returns the Float32 or Nil value represented by given Float type.


[View source]
def to_float32?(raw : Hash) #

Returns the Nil value represented by given Hash type.


[View source]
def to_float32?(raw : Int) #

Returns the Float32 or Nil value represented by given Int type.


[View source]
def to_float32?(raw : JSON::Any) #

Returns the Float32 or Nil value represented by given JSON::Any type.


[View source]
def to_float32?(raw : NamedTuple) #

Returns the Nil value represented by given NamedTuple type.


[View source]
def to_float32?(raw : Nil) #

Returns the Float32 or Nil value represented by given Nil type.


[View source]
def to_float32?(raw : String) #

Returns the Float32 or Nil value represented by given String type.


[View source]
def to_float32?(raw : Symbol) #

Returns the Nil value represented by given Symbol type.


[View source]
def to_float32?(raw : Time) #

Returns the Nil value represented by given Time type.


[View source]
def to_float32?(raw : YAML::Any) #

Returns the Float32 or Nil value represented by given YAML::Any type.


[View source]
def to_float64(raw : Array) #

Returns the Float64 value represented by given Array type, else raise a TypeCastError exception.


[View source]
def to_float64(raw : Bool) #

Returns the Float64 value represented by given Bool type, else raise a TypeCastError exception.


[View source]
def to_float64(raw : Float) #

Returns the Float64 value represented by given Float type, else raise a TypeCastError exception.


[View source]
def to_float64(raw : Hash) #

Returns the Float64 value represented by given Hash type, else raise a TypeCastError exception.


[View source]
def to_float64(raw : Int) #

Returns the Float64 value represented by given Int type, else raise a TypeCastError exception.


[View source]
def to_float64(raw : JSON::Any) #

Returns the Float64 value represented by given JSON::Any type, else raise a TypeCastError exception.


[View source]
def to_float64(raw : NamedTuple) #

Returns the Float64 value represented by given NamedTuple type, else raise a TypeCastError exception.


[View source]
def to_float64(raw : Nil) #

Returns the Float64 value represented by given Nil type, else raise a TypeCastError exception.


[View source]
def to_float64(raw : String) #

Returns the Float64 value represented by given String type, else raise a TypeCastError exception.


[View source]
def to_float64(raw : Symbol) #

Returns the Float64 value represented by given Symbol type, else raise a TypeCastError exception.


[View source]
def to_float64(raw : Time) #

Returns the Float64 value represented by given Time type, else raise a TypeCastError exception.


[View source]
def to_float64(raw : YAML::Any) #

Returns the Float64 value represented by given YAML::Any type, else raise a TypeCastError exception.


[View source]
def to_float64?(raw : Array) #

Returns the Float64 or Nil value represented by given Array type.


[View source]
def to_float64?(raw : Bool) #

Alias to #to_float64?


[View source]
def to_float64?(raw : Float) #

Alias to #to_float64?


[View source]
def to_float64?(raw : Hash) #

Returns the Nil value represented by given Hash type.


[View source]
def to_float64?(raw : Int) #

Alias to #to_float64?


[View source]
def to_float64?(raw : JSON::Any) #

Alias to #to_float64?


[View source]
def to_float64?(raw : NamedTuple) #

Returns the Nil value represented by given NamedTuple type.


[View source]
def to_float64?(raw : Nil) #

Alias to #to_float64?


[View source]
def to_float64?(raw : String) #

Alias to #to_float64?


[View source]
def to_float64?(raw : Symbol) #

Alias to #to_float64?


[View source]
def to_float64?(raw : Time) #

Alias to #to_float64?


[View source]
def to_float64?(raw : YAML::Any) #

Returns the Float64 or Nil value represented by given YAML::Any type.


[View source]
def to_float?(raw : Array) #

Alias to #to_float64?


[View source]
def to_float?(raw : Bool) #

Returns the Float64 or Nil value represented by given Bool type.


[View source]
def to_float?(raw : Float) #

Returns the Float64 or Nil value represented by given Float type.


[View source]
def to_float?(raw : Hash) #

Alias to #to_float64?


[View source]
def to_float?(raw : Int) #

Returns the Float64 or Nil value represented by given Int type.


[View source]
def to_float?(raw : JSON::Any) #

Returns the Float64 or Nil value represented by given JSON::Any type.


[View source]
def to_float?(raw : NamedTuple) #

Alias to #to_float64?


[View source]
def to_float?(raw : Nil) #

Returns the Float64 or Nil value represented by given Nil type.


[View source]
def to_float?(raw : String) #

Returns the Float64 or Nil value represented by given String type.


[View source]
def to_float?(raw : Symbol) #

Returns the Nil value represented by given Symbol type.


[View source]
def to_float?(raw : Time) #

Returns the Float64 or Nil value represented by given Time type.


[View source]
def to_float?(raw : YAML::Any) #

Alias to #to_float64?


[View source]
def to_hash(raw : Array, value_type : T.class = String) forall T #

Returns the Hash value represented by given Array type, else raise a TypeCastError exception.


[View source]
def to_hash(raw : Bool, value_type : T.class = String) forall T #

Returns the Hash value represented by given Bool type, else raise a TypeCastError exception.


[View source]
def to_hash(raw : Float, value_type : T.class = String) forall T #

Returns the Hash value represented by given Float type, else raise a TypeCastError exception.


[View source]
def to_hash(raw : Hash, value_type : T.class = String) forall T #

Returns the Hash value represented by given Hash type, else raise a TypeCastError exception.


[View source]
def to_hash(raw : Int, value_type : T.class = String) forall T #

Returns the Hash value represented by given Int type, else raise a TypeCastError exception.


[View source]
def to_hash(raw : JSON::Any, value_type : T.class = String) forall T #

Returns the Hash value represented by given JSON::Any type, else raise a TypeCastError exception.


[View source]
def to_hash(raw : NamedTuple, value_type : T.class = String) forall T #

Returns the Hash value represented by given NamedTuple type, else raise a TypeCastError exception.


[View source]
def to_hash(raw : Time, value_type : T.class = String) forall T #

Returns the Hash value represented by given Time type, else raise a TypeCastError exception.


[View source]
def to_hash(raw : String, value_type : T.class = String) forall T #

Returns the Hash value represented by given String type, else raise a TypeCastError exception.


[View source]
def to_hash(raw : Symbol, value_type : T.class = String) forall T #

Returns the Hash value represented by given Symbol type, else raise a TypeCastError exception.


[View source]
def to_hash(raw : YAML::Any, value_type : T.class = String) forall T #

Returns the Hash value represented by given YAML::Any type, else raise a TypeCastError exception.


[View source]
def to_hash?(raw : Array, value_type : T.class = String) forall T #

Returns the Hash or Nil value represented by given Array type.


[View source]
def to_hash?(raw : Bool, value_type : T.class = String) forall T #

Returns the Hash or Nil value represented by given Bool type.


[View source]
def to_hash?(raw : Float, value_type : T.class = String) forall T #

Returns the Hash or Nil value represented by given Float type.


[View source]
def to_hash?(raw : Hash, value_type : T.class = String) forall T #

Returns the Hash or Nil value represented by given Hash type.


[View source]
def to_hash?(raw : Int, value_type : T.class = String) forall T #

Returns the Hash or Nil value represented by given Int type.


[View source]
def to_hash?(raw : JSON::Any, value_type : T.class = String) forall T #

Returns the Hash or Nil value represented by given JSON::Any type.


[View source]
def to_hash?(raw : NamedTuple, value_type : T.class = String) forall T #

Returns the Hash or Nil value represented by given NamedTuple type.


[View source]
def to_hash?(raw : Time, value_type : T.class = String) forall T #

Returns the Hash or Nil value represented by given Time type.


[View source]
def to_hash?(raw : String, value_type : T.class = String) forall T #

Returns the Hash or Nil value represented by given String type.


[View source]
def to_hash?(raw : Symbol, value_type : T.class = String) forall T #

Returns the Hash or Nil value represented by given Symbol type.


[View source]
def to_hash?(raw : YAML::Any, value_type : T.class = String) forall T #

Returns the Hash or Nil value represented by given YAML::Any type.


[View source]
def to_int(raw : Array) #

Returns the Int value represented by given Array type, else raise a TypeCastError exception.


[View source]
def to_int(raw : Bool) #

Returns the Int value represented by given Bool type, else raise a TypeCastError exception.


[View source]
def to_int(raw : Float) #

Returns the Int value represented by given Float type, else raise a TypeCastError exception.


[View source]
def to_int(raw : Hash) #

Returns the Int value represented by given Hash type, else raise a TypeCastError exception.


[View source]
def to_int(raw : Int) #

Returns the Int value represented by given Int type, else raise a TypeCastError exception.


[View source]
def to_int(raw : JSON::Any) #

Returns the Int value represented by given JSON::Any type, else raise a TypeCastError exception.


[View source]
def to_int(raw : NamedTuple) #

Returns the Int value represented by given NamedTuple type, else raise a TypeCastError exception.


[View source]
def to_int(raw : Nil) #

Returns the Int value represented by given Nil type, else raise a TypeCastError exception.


[View source]
def to_int(raw : String) #

Returns the Int value represented by given String type, else raise a TypeCastError exception.


[View source]
def to_int(raw : Symbol) #

Returns the Int value represented by given Symbol type, else raise a TypeCastError exception.


[View source]
def to_int(raw : Time) #

Returns the Int value represented by given Time type, else raise a TypeCastError exception.


[View source]
def to_int(raw : YAML::Any) #

Returns the Int value represented by given YAML::Any type, else raise a TypeCastError exception.


[View source]
def to_int16(raw : Array) #

Returns the Int16 value represented by given Array type, else raise a TypeCastError exception.


[View source]
def to_int16(raw : Bool) #

Returns the Int16 value represented by given Bool type, else raise a TypeCastError exception.


[View source]
def to_int16(raw : Float) #

Returns the Int16 value represented by given Float type, else raise a TypeCastError exception.


[View source]
def to_int16(raw : Hash) #

Returns the Int16 value represented by given Hash type, else raise a TypeCastError exception.


[View source]
def to_int16(raw : Int) #

Returns the Int16 value represented by given Int type, else raise a TypeCastError exception.


[View source]
def to_int16(raw : JSON::Any) #

Returns the Int16 value represented by given JSON::Any type, else raise a TypeCastError exception.


[View source]
def to_int16(raw : NamedTuple) #

Returns the Int16 value represented by given NamedTuple type, else raise a TypeCastError exception.


[View source]
def to_int16(raw : Nil) #

Returns the Int16 value represented by given Nil type, else raise a TypeCastError exception.


[View source]
def to_int16(raw : String) #

Returns the Int16 value represented by given String type, else raise a TypeCastError exception.


[View source]
def to_int16(raw : Symbol) #

Returns the Int16 value represented by given Symbol type, else raise a TypeCastError exception.


[View source]
def to_int16(raw : Time) #

Returns the Int16 value represented by given Time type, else raise a TypeCastError exception.


[View source]
def to_int16(raw : YAML::Any) #

Returns the Int16 value represented by given YAML::Any type, else raise a TypeCastError exception.


[View source]
def to_int16?(raw : Array) #

Returns the Int16 or Nil value represented by given Array type.


[View source]
def to_int16?(raw : Bool) #

Returns the Int16 or Nil value represented by given Bool type.


[View source]
def to_int16?(raw : Float) #

Returns the Int16 or Nil value represented by given Float type.


[View source]
def to_int16?(raw : Hash) #

Returns the Nil value represented by given Hash type.


[View source]
def to_int16?(raw : Int) #

Returns the Int16 or Nil value represented by given Int type.


[View source]
def to_int16?(raw : JSON::Any) #

Returns the Int16 or Nil value represented by given JSON::Any type.


[View source]
def to_int16?(raw : NamedTuple) #

Returns the Nil value represented by given NamedTuple type.


[View source]
def to_int16?(raw : Nil) #

Returns the Int16 or Nil value represented by given Nil type.


[View source]
def to_int16?(raw : String) #

Returns the Int16 or Nil value represented by given String type.


[View source]
def to_int16?(raw : Symbol) #

Returns the Nil value represented by given Symbol type.


[View source]
def to_int16?(raw : Time) #

Returns the Nil value represented by given Time type.


[View source]
def to_int16?(raw : YAML::Any) #

Returns the Int16 or Nil value represented by given YAML::Any type.


[View source]
def to_int32(raw : Array) #

Returns the Int32 value represented by given Array type, else raise a TypeCastError exception.


[View source]
def to_int32(raw : Bool) #

Returns the Int32 value represented by given Bool type, else raise a TypeCastError exception.


[View source]
def to_int32(raw : Float) #

Returns the Int32 value represented by given Float type, else raise a TypeCastError exception.


[View source]
def to_int32(raw : Hash) #

Returns the Int32 value represented by given Hash type, else raise a TypeCastError exception.


[View source]
def to_int32(raw : Int) #

Returns the Int32 value represented by given Int type, else raise a TypeCastError exception.


[View source]
def to_int32(raw : JSON::Any) #

Returns the Int32 value represented by given JSON::Any type, else raise a TypeCastError exception.


[View source]
def to_int32(raw : NamedTuple) #

Returns the Int32 value represented by given NamedTuple type, else raise a TypeCastError exception.


[View source]
def to_int32(raw : Nil) #

Returns the Int32 value represented by given Nil type, else raise a TypeCastError exception.


[View source]
def to_int32(raw : String) #

Returns the Int32 value represented by given String type, else raise a TypeCastError exception.


[View source]
def to_int32(raw : Symbol) #

Returns the Int32 value represented by given Symbol type, else raise a TypeCastError exception.


[View source]
def to_int32(raw : Time) #

Returns the Int32 value represented by given Time type, else raise a TypeCastError exception.


[View source]
def to_int32(raw : YAML::Any) #

Returns the Int32 value represented by given YAML::Any type, else raise a TypeCastError exception.


[View source]
def to_int32?(raw : Array) #

Returns the Int32 or Nil value represented by given Array type.


[View source]
def to_int32?(raw : Bool) #

Returns the Int32 or Nil value represented by given Bool type.


[View source]
def to_int32?(raw : Float) #

Returns the Int32 or Nil value represented by given Float type.


[View source]
def to_int32?(raw : Hash) #

Returns the Nil value represented by given Hash type.


[View source]
def to_int32?(raw : Int) #

Returns the Int32 or Nil value represented by given Int type.


[View source]
def to_int32?(raw : JSON::Any) #

Returns the Int32 or Nil value represented by given JSON::Any type.


[View source]
def to_int32?(raw : NamedTuple) #

Returns the Nil value represented by given NamedTuple type.


[View source]
def to_int32?(raw : Nil) #

Returns the Int32 or Nil value represented by given Nil type.


[View source]
def to_int32?(raw : String) #

Returns the Int32 or Nil value represented by given String type.


[View source]
def to_int32?(raw : Symbol) #

Returns the Nil value represented by given Symbol type.


[View source]
def to_int32?(raw : Time) #

Returns the Nil value represented by given Time type.


[View source]
def to_int32?(raw : YAML::Any) #

Returns the Int32 or Nil value represented by given YAML::Any type.


[View source]
def to_int64(raw : Array) #

Returns the Int64 value represented by given Array type, else raise a TypeCastError exception.


[View source]
def to_int64(raw : Bool) #

Returns the Int64 value represented by given Bool type, else raise a TypeCastError exception.


[View source]
def to_int64(raw : Float) #

Returns the Int64 value represented by given Float type, else raise a TypeCastError exception.


[View source]
def to_int64(raw : Hash) #

Returns the Int64 value represented by given Hash type, else raise a TypeCastError exception.


[View source]
def to_int64(raw : Int) #

Returns the Int64 value represented by given Int type, else raise a TypeCastError exception.


[View source]
def to_int64(raw : JSON::Any) #

Returns the Int64 value represented by given JSON::Any type, else raise a TypeCastError exception.


[View source]
def to_int64(raw : NamedTuple) #

Returns the Int64 value represented by given NamedTuple type, else raise a TypeCastError exception.


[View source]
def to_int64(raw : Nil) #

Returns the Int64 value represented by given Nil type, else raise a TypeCastError exception.


[View source]
def to_int64(raw : String) #

Returns the Int64 value represented by given String type, else raise a TypeCastError exception.


[View source]
def to_int64(raw : Symbol) #

Returns the Int64 value represented by given Symbol type, else raise a TypeCastError exception.


[View source]
def to_int64(raw : Time) #

Returns the Int64 value represented by given Time type, else raise a TypeCastError exception.


[View source]
def to_int64(raw : YAML::Any) #

Returns the Int64 value represented by given YAML::Any type, else raise a TypeCastError exception.


[View source]
def to_int64?(raw : Array) #

Returns the Int64 or Nil value represented by given Array type.


[View source]
def to_int64?(raw : Bool) #

Returns the Int64 or Nil value represented by given Bool type.


[View source]
def to_int64?(raw : Float) #

Returns the Int64 or Nil value represented by given Float type.


[View source]
def to_int64?(raw : Hash) #

Returns the Nil value represented by given Hash type.


[View source]
def to_int64?(raw : Int) #

Returns the Int64 or Nil value represented by given Int type.


[View source]
def to_int64?(raw : JSON::Any) #

Returns the Int64 or Nil value represented by given JSON::Any type.


[View source]
def to_int64?(raw : NamedTuple) #

Returns the Nil value represented by given NamedTuple type.


[View source]
def to_int64?(raw : Nil) #

Returns the Int64 or Nil value represented by given Nil type.


[View source]
def to_int64?(raw : String) #

Returns the Int64 or Nil value represented by given String type.


[View source]
def to_int64?(raw : Symbol) #

Returns the Nil value represented by given Symbol type.


[View source]
def to_int64?(raw : Time) #

Returns the Int64 or Nil value represented by given Time type.


[View source]
def to_int64?(raw : YAML::Any) #

Returns the Int64 or Nil value represented by given YAML::Any type.


[View source]
def to_int8(raw : Array) #

Returns the Int8 value represented by given Array type, else raise a TypeCastError exception.


[View source]
def to_int8(raw : Bool) #

Returns the Int8 value represented by given Bool type, else raise a TypeCastError exception.


[View source]
def to_int8(raw : Float) #

Returns the Int8 value represented by given Float type, else raise a TypeCastError exception.


[View source]
def to_int8(raw : Hash) #

Returns the Int8 value represented by given Hash type, else raise a TypeCastError exception.


[View source]
def to_int8(raw : Int) #

Returns the Int8 value represented by given Int type, else raise a TypeCastError exception.


[View source]
def to_int8(raw : JSON::Any) #

Returns the Int8 value represented by given JSON::Any type, else raise a TypeCastError exception.


[View source]
def to_int8(raw : NamedTuple) #

Returns the Int8 value represented by given NamedTuple type, else raise a TypeCastError exception.


[View source]
def to_int8(raw : Nil) #

Returns the Int8 value represented by given Nil type, else raise a TypeCastError exception.


[View source]
def to_int8(raw : String) #

Returns the Int8 value represented by given String type, else raise a TypeCastError exception.


[View source]
def to_int8(raw : Symbol) #

Returns the Int8 value represented by given Symbol type, else raise a TypeCastError exception.


[View source]
def to_int8(raw : Time) #

Returns the Int8 value represented by given Time type, else raise a TypeCastError exception.


[View source]
def to_int8(raw : YAML::Any) #

Returns the Int8 value represented by given YAML::Any type, else raise a TypeCastError exception.


[View source]
def to_int8?(raw : Array) #

Returns the Int8 or Nil value represented by given Array type.


[View source]
def to_int8?(raw : Bool) #

Returns the Int8 or Nil value represented by given Bool type.


[View source]
def to_int8?(raw : Float) #

Returns the Int8 or Nil value represented by given Float type.


[View source]
def to_int8?(raw : Hash) #

Returns the Nil value represented by given Hash type.


[View source]
def to_int8?(raw : Int) #

Returns the Int8 or Nil value represented by given Int type.


[View source]
def to_int8?(raw : JSON::Any) #

Returns the Int8 or Nil value represented by given JSON::Any type.


[View source]
def to_int8?(raw : NamedTuple) #

Returns the Nil value represented by given NamedTuple type.


[View source]
def to_int8?(raw : Nil) #

Returns the Int8 or Nil value represented by given Nil type.


[View source]
def to_int8?(raw : String) #

Returns the Int8 or Nil value represented by given String type.


[View source]
def to_int8?(raw : Symbol) #

Returns the Nil value represented by given Symbol type.


[View source]
def to_int8?(raw : Time) #

Returns the Nil value represented by given Time type.


[View source]
def to_int8?(raw : YAML::Any) #

Returns the Int8 or Nil value represented by given YAML::Any type.


[View source]
def to_int?(raw : Array) #

Alias to #to_int32?


[View source]
def to_int?(raw : Bool) #

Alias to #to_int32?


[View source]
def to_int?(raw : Float) #

Alias to #to_int32?


[View source]
def to_int?(raw : Hash) #

Alias to #to_int32?


[View source]
def to_int?(raw : Int) #

Alias to #to_int32?


[View source]
def to_int?(raw : JSON::Any) #

Alias to #to_int32?


[View source]
def to_int?(raw : NamedTuple) #

Alias to #to_int32?


[View source]
def to_int?(raw : Nil) #

Alias to #to_int32?


[View source]
def to_int?(raw : String) #

Alias to #to_int32?


[View source]
def to_int?(raw : Symbol) #

Alias to #to_int32?


[View source]
def to_int?(raw : Time) #

Alias to #to_int32?


[View source]
def to_int?(raw : YAML::Any) #

Alias to #to_int32?


[View source]
def to_string(raw : Array) #

[View source]
def to_string(raw : Bool) #

[View source]
def to_string(raw : Float) #

[View source]
def to_string(raw : Hash) #

[View source]
def to_string(raw : Int) #

[View source]
def to_string(raw : JSON::Any) #

[View source]
def to_string(raw : NamedTuple) #

[View source]
def to_string(raw : Nil) #

[View source]
def to_string(raw : String) #

[View source]
def to_string(raw : Symbol) #

[View source]
def to_string(raw : Time) #

[View source]
def to_string(raw : YAML::Any) #

[View source]
def to_time(raw : Array, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Time value represented by given Array type, else raise a TypeCastError exception.


[View source]
def to_time(raw : Bool, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Time value represented by given Bool type, else raise a TypeCastError exception.


[View source]
def to_time(raw : Float, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Time value represented by given Float type, else raise a TypeCastError exception.


[View source]
def to_time(raw : Hash, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Time value represented by given Hash type, else raise a TypeCastError exception.


[View source]
def to_time(raw : Int, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Time value represented by given Int type, else raise a TypeCastError exception.


[View source]
def to_time(raw : JSON::Any, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Time value represented by given JSON::Any type, else raise a TypeCastError exception.


[View source]
def to_time(raw : Array, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Time value represented by given Array type, else raise a TypeCastError exception.


[View source]
def to_time(raw : Nil, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Time value represented by given Nil type, else raise a TypeCastError exception.


[View source]
def to_time(raw : String, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Time value represented by given String type, else raise a TypeCastError exception.


[View source]
def to_time(raw : Symbol, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Time value represented by given Symbol type, else raise a TypeCastError exception.


[View source]
def to_time(raw : Time, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Time value represented by given Time type, else raise a TypeCastError exception.


[View source]
def to_time(raw : YAML::Any, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Time value represented by given YAML::Any type, else raise a TypeCastError exception.


[View source]
def to_time?(raw : Array, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Time or Nil value represented by given Array type.

  • location argument applies for Int/String types
  • formatters argument applies for String type.

[View source]
def to_time?(raw : Bool, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Nil value represented by given Bool type.

  • location argument applies for Int/String types
  • formatters argument applies for String type.

[View source]
def to_time?(raw : Float, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Nil value represented by given Float type.

  • location argument applies for Int/String types
  • formatters argument applies for String type.

[View source]
def to_time?(raw : Hash, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Nil value represented by given Hash type.

  • location argument applies for Int/String types
  • formatters argument applies for String type.

[View source]
def to_time?(raw : Int, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Time or Nil value represented by given Int type.

  • location argument applies for Int/String types
  • formatters argument applies for String type.

[View source]
def to_time?(raw : JSON::Any, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Time or Nil value represented by given JSON::Any type.

  • location argument applies for Int/String types
  • formatters argument applies for String type.

[View source]
def to_time?(raw : Array, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Nil value represented by given NamedTuple type.

  • location argument applies for Int/String types
  • formatters argument applies for String type.

[View source]
def to_time?(raw : Nil, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Nil value represented by given Nil type.

  • location argument applies for Int/String types
  • formatters argument applies for String type.

[View source]
def to_time?(raw : String, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Time or Nil value represented by given String type.

  • location argument applies for Int/String types
  • formatters argument applies for String type.

[View source]
def to_time?(raw : Symbol, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Nil value represented by given Symbol type.

  • location argument applies for Int/String types
  • formatters argument applies for String type.

[View source]
def to_time?(raw : Time, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Time or Nil value represented by given Time type.

  • location argument applies for Int/String types
  • formatters argument applies for String type.

[View source]
def to_time?(raw : YAML::Any, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil) #

Returns the Time or Nil value represented by given YAML::Any type.

  • location argument applies for Int/String types
  • formatters argument applies for String type.

[View source]
def to_uint(raw : Array) #

Returns the UInt value represented by given Array type, else raise a TypeCastError exception.


[View source]
def to_uint(raw : Bool) #

Returns the UInt value represented by given Bool type, else raise a TypeCastError exception.


[View source]
def to_uint(raw : Float) #

Returns the UInt value represented by given Float type, else raise a TypeCastError exception.


[View source]
def to_uint(raw : Hash) #

Returns the UInt value represented by given Hash type, else raise a TypeCastError exception.


[View source]
def to_uint(raw : Int) #

Returns the UInt value represented by given Int type, else raise a TypeCastError exception.


[View source]
def to_uint(raw : JSON::Any) #

Returns the UInt value represented by given JSON::Any type, else raise a TypeCastError exception.


[View source]
def to_uint(raw : NamedTuple) #

Returns the UInt value represented by given NamedTuple type, else raise a TypeCastError exception.


[View source]
def to_uint(raw : Nil) #

Returns the UInt value represented by given Nil type, else raise a TypeCastError exception.


[View source]
def to_uint(raw : String) #

Returns the UInt value represented by given String type, else raise a TypeCastError exception.


[View source]
def to_uint(raw : Symbol) #

Returns the UInt value represented by given Symbol type, else raise a TypeCastError exception.


[View source]
def to_uint(raw : Time) #

Returns the UInt value represented by given Time type, else raise a TypeCastError exception.


[View source]
def to_uint(raw : YAML::Any) #

Returns the UInt value represented by given YAML::Any type, else raise a TypeCastError exception.


[View source]
def to_uint16(raw : Array) #

Returns the UInt16 value represented by given Array type, else raise a TypeCastError exception.


[View source]
def to_uint16(raw : Bool) #

Returns the UInt16 value represented by given Bool type, else raise a TypeCastError exception.


[View source]
def to_uint16(raw : Float) #

Returns the UInt16 value represented by given Float type, else raise a TypeCastError exception.


[View source]
def to_uint16(raw : Hash) #

Returns the UInt16 value represented by given Hash type, else raise a TypeCastError exception.


[View source]
def to_uint16(raw : Int) #

Returns the UInt16 value represented by given Int type, else raise a TypeCastError exception.


[View source]
def to_uint16(raw : JSON::Any) #

Returns the UInt16 value represented by given JSON::Any type, else raise a TypeCastError exception.


[View source]
def to_uint16(raw : NamedTuple) #

Returns the UInt16 value represented by given NamedTuple type, else raise a TypeCastError exception.


[View source]
def to_uint16(raw : Nil) #

Returns the UInt16 value represented by given Nil type, else raise a TypeCastError exception.


[View source]
def to_uint16(raw : String) #

Returns the UInt16 value represented by given String type, else raise a TypeCastError exception.


[View source]
def to_uint16(raw : Symbol) #

Returns the UInt16 value represented by given Symbol type, else raise a TypeCastError exception.


[View source]
def to_uint16(raw : Time) #

Returns the UInt16 value represented by given Time type, else raise a TypeCastError exception.


[View source]
def to_uint16(raw : YAML::Any) #

Returns the UInt16 value represented by given YAML::Any type, else raise a TypeCastError exception.


[View source]
def to_uint16?(raw : Array) #

Returns the UInt16 or Nil value represented by given Array type.


[View source]
def to_uint16?(raw : Bool) #

Returns the UInt16 or Nil value represented by given Bool type.


[View source]
def to_uint16?(raw : Float) #

Returns the UInt16 or Nil value represented by given Float type.


[View source]
def to_uint16?(raw : Hash) #

Returns the Nil value represented by given Hash type.


[View source]
def to_uint16?(raw : Int) #

Returns the UInt16 or Nil value represented by given Int type.


[View source]
def to_uint16?(raw : JSON::Any) #

Returns the UInt16 or Nil value represented by given JSON::Any type.


[View source]
def to_uint16?(raw : NamedTuple) #

Returns the Nil value represented by given NamedTuple type.


[View source]
def to_uint16?(raw : Nil) #

Returns the UInt16 or Nil value represented by given Nil type.


[View source]
def to_uint16?(raw : String) #

Returns the UInt16 or Nil value represented by given String type.


[View source]
def to_uint16?(raw : Symbol) #

Returns the Nil value represented by given Symbol type.


[View source]
def to_uint16?(raw : Time) #

Returns the Nil value represented by given Time type.


[View source]
def to_uint16?(raw : YAML::Any) #

Returns the UInt16 or Nil value represented by given YAML::Any type.


[View source]
def to_uint32(raw : Array) #

Returns the UInt32 value represented by given Array type, else raise a TypeCastError exception.


[View source]
def to_uint32(raw : Bool) #

Returns the UInt32 value represented by given Bool type, else raise a TypeCastError exception.


[View source]
def to_uint32(raw : Float) #

Returns the UInt32 value represented by given Float type, else raise a TypeCastError exception.


[View source]
def to_uint32(raw : Hash) #

Returns the UInt32 value represented by given Hash type, else raise a TypeCastError exception.


[View source]
def to_uint32(raw : Int) #

Returns the UInt32 value represented by given Int type, else raise a TypeCastError exception.


[View source]
def to_uint32(raw : JSON::Any) #

Returns the UInt32 value represented by given JSON::Any type, else raise a TypeCastError exception.


[View source]
def to_uint32(raw : NamedTuple) #

Returns the UInt32 value represented by given NamedTuple type, else raise a TypeCastError exception.


[View source]
def to_uint32(raw : Nil) #

Returns the UInt32 value represented by given Nil type, else raise a TypeCastError exception.


[View source]
def to_uint32(raw : String) #

Returns the UInt32 value represented by given String type, else raise a TypeCastError exception.


[View source]
def to_uint32(raw : Symbol) #

Returns the UInt32 value represented by given Symbol type, else raise a TypeCastError exception.


[View source]
def to_uint32(raw : Time) #

Returns the UInt32 value represented by given Time type, else raise a TypeCastError exception.


[View source]
def to_uint32(raw : YAML::Any) #

Returns the UInt32 value represented by given YAML::Any type, else raise a TypeCastError exception.


[View source]
def to_uint32?(raw : Array) #

Alias to #to_uint?


[View source]
def to_uint32?(raw : Bool) #

Alias to #to_uint?


[View source]
def to_uint32?(raw : Float) #

Alias to #to_uint?


[View source]
def to_uint32?(raw : Hash) #

Alias to #to_uint?


[View source]
def to_uint32?(raw : Int) #

Alias to #to_uint?


[View source]
def to_uint32?(raw : JSON::Any) #

Alias to #to_uint?


[View source]
def to_uint32?(raw : NamedTuple) #

Returns the Nil value represented by given NamedTuple type.


[View source]
def to_uint32?(raw : Nil) #

Alias to #to_uint?


[View source]
def to_uint32?(raw : String) #

Alias to #to_uint?


[View source]
def to_uint32?(raw : Symbol) #

Alias to #to_uint?


[View source]
def to_uint32?(raw : Time) #

Alias to #to_uint?


[View source]
def to_uint32?(raw : YAML::Any) #

Alias to #to_uint?


[View source]
def to_uint64(raw : Array) #

Returns the UInt64 value represented by given Array type, else raise a TypeCastError exception.


[View source]
def to_uint64(raw : Bool) #

Returns the UInt64 value represented by given Bool type, else raise a TypeCastError exception.


[View source]
def to_uint64(raw : Float) #

Returns the UInt64 value represented by given Float type, else raise a TypeCastError exception.


[View source]
def to_uint64(raw : Hash) #

Returns the UInt64 value represented by given Hash type, else raise a TypeCastError exception.


[View source]
def to_uint64(raw : Int) #

Returns the UInt64 value represented by given Int type, else raise a TypeCastError exception.


[View source]
def to_uint64(raw : JSON::Any) #

Returns the UInt64 value represented by given JSON::Any type, else raise a TypeCastError exception.


[View source]
def to_uint64(raw : NamedTuple) #

Returns the UInt64 value represented by given NamedTuple type, else raise a TypeCastError exception.


[View source]
def to_uint64(raw : Nil) #

Returns the UInt64 value represented by given Nil type, else raise a TypeCastError exception.


[View source]
def to_uint64(raw : String) #

Returns the UInt64 value represented by given String type, else raise a TypeCastError exception.


[View source]
def to_uint64(raw : Symbol) #

Returns the UInt64 value represented by given Symbol type, else raise a TypeCastError exception.


[View source]
def to_uint64(raw : Time) #

Returns the UInt64 value represented by given Time type, else raise a TypeCastError exception.


[View source]
def to_uint64(raw : YAML::Any) #

Returns the UInt64 value represented by given YAML::Any type, else raise a TypeCastError exception.


[View source]
def to_uint64?(raw : Array) #

Returns the UInt64 or Nil value represented by given Array type.


[View source]
def to_uint64?(raw : Bool) #

Returns the UInt64 or Nil value represented by given Bool type.


[View source]
def to_uint64?(raw : Float) #

Returns the UInt64 or Nil value represented by given Float type.


[View source]
def to_uint64?(raw : Hash) #

Returns the Nil value represented by given Hash type.


[View source]
def to_uint64?(raw : Int) #

Returns the UInt64 or Nil value represented by given Int type.


[View source]
def to_uint64?(raw : JSON::Any) #

Returns the UInt64 or Nil value represented by given JSON::Any type.


[View source]
def to_uint64?(raw : NamedTuple) #

Returns the Nil value represented by given NamedTuple type.


[View source]
def to_uint64?(raw : Nil) #

Returns the UInt64 or Nil value represented by given Nil type.


[View source]
def to_uint64?(raw : String) #

Returns the UInt64 or Nil value represented by given String type.


[View source]
def to_uint64?(raw : Symbol) #

Returns the Nil value represented by given Symbol type.


[View source]
def to_uint64?(raw : Time) #

Returns the UInt64 or Nil value represented by given Time type.


[View source]
def to_uint64?(raw : YAML::Any) #

Returns the UInt64 or Nil value represented by given YAML::Any type.


[View source]
def to_uint8(raw : Array) #

Returns the UInt8 value represented by given Array type, else raise a TypeCastError exception.


[View source]
def to_uint8(raw : Bool) #

Returns the UInt8 value represented by given Bool type, else raise a TypeCastError exception.


[View source]
def to_uint8(raw : Float) #

Returns the UInt8 value represented by given Float type, else raise a TypeCastError exception.


[View source]
def to_uint8(raw : Hash) #

Returns the UInt8 value represented by given Hash type, else raise a TypeCastError exception.


[View source]
def to_uint8(raw : Int) #

Returns the UInt8 value represented by given Int type, else raise a TypeCastError exception.


[View source]
def to_uint8(raw : JSON::Any) #

Returns the UInt8 value represented by given JSON::Any type, else raise a TypeCastError exception.


[View source]
def to_uint8(raw : NamedTuple) #

Returns the UInt8 value represented by given NamedTuple type, else raise a TypeCastError exception.


[View source]
def to_uint8(raw : Nil) #

Returns the UInt8 value represented by given Nil type, else raise a TypeCastError exception.


[View source]
def to_uint8(raw : String) #

Returns the UInt8 value represented by given String type, else raise a TypeCastError exception.


[View source]
def to_uint8(raw : Symbol) #

Returns the UInt8 value represented by given Symbol type, else raise a TypeCastError exception.


[View source]
def to_uint8(raw : Time) #

Returns the UInt8 value represented by given Time type, else raise a TypeCastError exception.


[View source]
def to_uint8(raw : YAML::Any) #

Returns the UInt8 value represented by given YAML::Any type, else raise a TypeCastError exception.


[View source]
def to_uint8?(raw : Array) #

Returns the Int8 or Nil value represented by given Array type.


[View source]
def to_uint8?(raw : Bool) #

Returns the Int8 or Nil value represented by given Bool type.


[View source]
def to_uint8?(raw : Float) #

Returns the Int8 or Nil value represented by given Float type.


[View source]
def to_uint8?(raw : Hash) #

Returns the Nil value represented by given Hash type.


[View source]
def to_uint8?(raw : Int) #

Returns the Int8 or Nil value represented by given Int type.


[View source]
def to_uint8?(raw : JSON::Any) #

Returns the Int8 or Nil value represented by given JSON::Any type.


[View source]
def to_uint8?(raw : NamedTuple) #

Returns the Nil value represented by given NamedTuple type.


[View source]
def to_uint8?(raw : Nil) #

Returns the Int8 or Nil value represented by given Nil type.


[View source]
def to_uint8?(raw : String) #

Returns the Int8 or Nil value represented by given String type.


[View source]
def to_uint8?(raw : Symbol) #

Returns the Nil value represented by given Symbol type.


[View source]
def to_uint8?(raw : Time) #

Returns the Nil value represented by given Time type.


[View source]
def to_uint8?(raw : YAML::Any) #

Returns the Int8 or Nil value represented by given YAML::Any type.


[View source]
def to_uint?(raw : Array) #

Returns the UInt32 or Nil value represented by given Array type.


[View source]
def to_uint?(raw : Bool) #

Returns the UInt32 or Nil value represented by given Bool type.


[View source]
def to_uint?(raw : Float) #

Returns the UInt32 or Nil value represented by given Float type.


[View source]
def to_uint?(raw : Hash) #

Returns the Nil value represented by given Hash type.


[View source]
def to_uint?(raw : Int) #

Returns the UInt32 or Nil value represented by given Int type.


[View source]
def to_uint?(raw : JSON::Any) #

Returns the UInt32 or Nil value represented by given JSON::Any type.


[View source]
def to_uint?(raw : NamedTuple) #

Aliase to #to_uint32


[View source]
def to_uint?(raw : Nil) #

Returns the UInt32 or Nil value represented by given Nil type.


[View source]
def to_uint?(raw : String) #

Returns the UInt32 or Nil value represented by given String type.


[View source]
def to_uint?(raw : Symbol) #

Returns the Nil value represented by given Symbol type.


[View source]
def to_uint?(raw : Time) #

Returns the UInt32 or Nil value represented by given Time type.


[View source]
def to_uint?(raw : YAML::Any) #

Returns the UInt32 or Nil value represented by given YAML::Any type.


[View source]

Macro Detail

macro generate! #

Generate to to_xxx methods from to_xxx?.


[View source]