module Popcorn::Cast
Defined in:
popcorn/cast.crpopcorn/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
-
#cast(raw, other)
Returns the target value represented by given data type.
-
#cast?(raw, other)
Returns the target value or
Nil
represented by given data type. -
#cast_error!(source : String, other : String)
Raise a
TypeCastError
exception. -
#to_array(raw : Array, value_type : T.class = String) forall T
Returns the
Array
value represented by givenArray
type, else raise aTypeCastError
exception. -
#to_array(raw : Bool, value_type : T.class = String) forall T
Returns the
Array
value represented by givenBool
type, else raise aTypeCastError
exception. -
#to_array(raw : Float, value_type : T.class = String) forall T
Returns the
Array
value represented by givenFloat
type, else raise aTypeCastError
exception. -
#to_array(raw : Hash, value_type : T.class = String) forall T
Returns the
Array
value represented by givenHash
type, else raise aTypeCastError
exception. -
#to_array(raw : Int, value_type : T.class = String) forall T
Returns the
Array
value represented by givenInt
type, else raise aTypeCastError
exception. -
#to_array(raw : JSON::Any, value_type : T.class = String) forall T
Returns the
Array
value represented by givenJSON::Any
type, else raise aTypeCastError
exception. -
#to_array(raw : NamedTuple, value_type : T.class = String) forall T
Returns the
Array
value represented by givenNamedTuple
type, else raise aTypeCastError
exception. -
#to_array(raw : Time, value_type : T.class = String) forall T
Returns the
Array
value represented by givenTime
type, else raise aTypeCastError
exception. -
#to_array(raw : String, value_type : T.class = String) forall T
Returns the
Array
value represented by givenString
type, else raise aTypeCastError
exception. -
#to_array(raw : Symbol, value_type : T.class = String) forall T
Returns the
Array
value represented by givenSymbol
type, else raise aTypeCastError
exception. -
#to_array(raw : YAML::Any, value_type : T.class = String) forall T
Returns the
Array
value represented by givenYAML::Any
type, else raise aTypeCastError
exception. -
#to_array?(raw : Array, value_type : T.class = String) forall T
Returns the
Array
orNil
value represented by given Array type. -
#to_array?(raw : Bool, value_type : T.class = String) forall T
Returns the
Array
orNil
value represented by given Bool type. -
#to_array?(raw : Float, value_type : T.class = String) forall T
Returns the
Array
orNil
value represented by given Float type. -
#to_array?(raw : Hash, value_type : T.class = String) forall T
Returns the
Array
orNil
value represented by given Hash type. -
#to_array?(raw : Int, value_type : T.class = String) forall T
Returns the
Array
orNil
value represented by given Int type. -
#to_array?(raw : JSON::Any, value_type : T.class = String) forall T
Returns the
Array
orNil
value represented by given JSON::Any type. -
#to_array?(raw : NamedTuple, value_type : T.class = String) forall T
Returns the
Array
orNil
value represented by given NamedTuple type. -
#to_array?(raw : Time, value_type : T.class = String) forall T
Returns the
Array
orNil
value represented by given Time type. -
#to_array?(raw : String, value_type : T.class = String) forall T
Returns the
Array
orNil
value represented by given String type. -
#to_array?(raw : Symbol, value_type : T.class = String) forall T
Returns the
Array
orNil
value represented by given Symbol type. -
#to_array?(raw : YAML::Any, value_type : T.class = String) forall T
Returns the
Array
orNil
value represented by given YAML::Any type. -
#to_bool(raw : Array)
Returns the
Bool
value represented by givenArray
type, else raise aTypeCastError
exception. - #to_bool(raw : Bool)
-
#to_bool(raw : Float)
Returns the
Bool
value represented by givenFloat
type, else raise aTypeCastError
exception. -
#to_bool(raw : Hash)
Returns the
Bool
value represented by givenHash
type, else raise aTypeCastError
exception. -
#to_bool(raw : Int)
Returns the
Bool
value represented by givenInt
type, else raise aTypeCastError
exception. - #to_bool(raw : JSON::Any)
-
#to_bool(raw : NamedTuple)
Returns the
Bool
value represented by givenNamedTuple
type, else raise aTypeCastError
exception. -
#to_bool(raw : Nil)
Returns the
Bool
value represented by givenNil
type, else raise aTypeCastError
exception. - #to_bool(raw : String)
- #to_bool(raw : Symbol)
- #to_bool(raw : Time)
- #to_bool(raw : YAML::Any)
-
#to_bool?(raw : Array)
Returns the
Bool
orNil
value represented by given Array type. -
#to_bool?(raw : Bool)
Returns the
Bool
value represented by given Bool type. -
#to_bool?(raw : Float)
Returns the
Bool
orNil
value represented by given Float type. -
#to_bool?(raw : Hash)
Returns the
Bool
orNil
value represented by given data type. -
#to_bool?(raw : Int)
Returns the
Bool
orNil
value represented by given Int type. -
#to_bool?(raw : JSON::Any)
Returns the
Bool
orNil
value represented by given JSON::Any type. -
#to_bool?(raw : NamedTuple)
Returns the
Bool
orNil
value represented by given NamedTuple type. -
#to_bool?(raw : Nil)
Returns the
Bool
value represented by given Nil type. -
#to_bool?(raw : String)
Returns the
Bool
orNil
value represented by given String type. -
#to_bool?(raw : Symbol)
Returns the
Bool
orNil
value represented by given Symbol type. -
#to_bool?(raw : Time)
Returns the
Nil
value represented by given Time type. -
#to_bool?(raw : YAML::Any)
Returns the
Bool
orNil
value represented by given YAML::Any type. -
#to_float(raw : Array)
Returns the
Float
value represented by givenArray
type, else raise aTypeCastError
exception. -
#to_float(raw : Bool)
Returns the
Float
value represented by givenBool
type, else raise aTypeCastError
exception. -
#to_float(raw : Float)
Returns the
Float
value represented by givenFloat
type, else raise aTypeCastError
exception. -
#to_float(raw : Hash)
Returns the
Float
value represented by givenHash
type, else raise aTypeCastError
exception. -
#to_float(raw : Int)
Returns the
Float
value represented by givenInt
type, else raise aTypeCastError
exception. -
#to_float(raw : JSON::Any)
Returns the
Float
value represented by givenJSON::Any
type, else raise aTypeCastError
exception. -
#to_float(raw : NamedTuple)
Returns the
Float
value represented by givenNamedTuple
type, else raise aTypeCastError
exception. -
#to_float(raw : Nil)
Returns the
Float
value represented by givenNil
type, else raise aTypeCastError
exception. -
#to_float(raw : String)
Returns the
Float
value represented by givenString
type, else raise aTypeCastError
exception. -
#to_float(raw : Symbol)
Returns the
Float
value represented by givenSymbol
type, else raise aTypeCastError
exception. -
#to_float(raw : Time)
Returns the
Float
value represented by givenTime
type, else raise aTypeCastError
exception. -
#to_float(raw : YAML::Any)
Returns the
Float
value represented by givenYAML::Any
type, else raise aTypeCastError
exception. -
#to_float32(raw : Array)
Returns the
Float32
value represented by givenArray
type, else raise aTypeCastError
exception. - #to_float32(raw : Bool)
-
#to_float32(raw : Float)
Returns the
Float32
value represented by givenFloat
type, else raise aTypeCastError
exception. -
#to_float32(raw : Hash)
Returns the
Float32
value represented by givenHash
type, else raise aTypeCastError
exception. -
#to_float32(raw : Int)
Returns the
Float32
value represented by givenInt
type, else raise aTypeCastError
exception. - #to_float32(raw : JSON::Any)
-
#to_float32(raw : NamedTuple)
Returns the
Float32
value represented by givenNamedTuple
type, else raise aTypeCastError
exception. -
#to_float32(raw : Nil)
Returns the
Float32
value represented by givenNil
type, else raise aTypeCastError
exception. - #to_float32(raw : String)
- #to_float32(raw : Symbol)
- #to_float32(raw : Time)
- #to_float32(raw : YAML::Any)
-
#to_float32?(raw : Array)
Returns the
Float32
orNil
value represented by given Array type. -
#to_float32?(raw : Bool)
Returns the
Nil
value represented by given Bool type. -
#to_float32?(raw : Float)
Returns the
Float32
orNil
value represented by given Float type. -
#to_float32?(raw : Hash)
Returns the
Nil
value represented by given Hash type. -
#to_float32?(raw : Int)
Returns the
Float32
orNil
value represented by given Int type. -
#to_float32?(raw : JSON::Any)
Returns the
Float32
orNil
value represented by given JSON::Any type. -
#to_float32?(raw : NamedTuple)
Returns the
Nil
value represented by given NamedTuple type. -
#to_float32?(raw : Nil)
Returns the
Float32
orNil
value represented by given Nil type. -
#to_float32?(raw : String)
Returns the
Float32
orNil
value represented by given String type. -
#to_float32?(raw : Symbol)
Returns the
Nil
value represented by given Symbol type. -
#to_float32?(raw : Time)
Returns the
Nil
value represented by given Time type. -
#to_float32?(raw : YAML::Any)
Returns the
Float32
orNil
value represented by given YAML::Any type. -
#to_float64(raw : Array)
Returns the
Float64
value represented by givenArray
type, else raise aTypeCastError
exception. - #to_float64(raw : Bool)
-
#to_float64(raw : Float)
Returns the
Float64
value represented by givenFloat
type, else raise aTypeCastError
exception. -
#to_float64(raw : Hash)
Returns the
Float64
value represented by givenHash
type, else raise aTypeCastError
exception. -
#to_float64(raw : Int)
Returns the
Float64
value represented by givenInt
type, else raise aTypeCastError
exception. - #to_float64(raw : JSON::Any)
-
#to_float64(raw : NamedTuple)
Returns the
Float64
value represented by givenNamedTuple
type, else raise aTypeCastError
exception. -
#to_float64(raw : Nil)
Returns the
Float64
value represented by givenNil
type, else raise aTypeCastError
exception. - #to_float64(raw : String)
- #to_float64(raw : Symbol)
- #to_float64(raw : Time)
- #to_float64(raw : YAML::Any)
-
#to_float64?(raw : Array)
Returns the
Float64
orNil
value represented by given Array type. -
#to_float64?(raw : Bool)
Alias to
#to_float64?
-
#to_float64?(raw : Float)
Alias to
#to_float64?
-
#to_float64?(raw : Hash)
Returns the
Nil
value represented by given Hash type. -
#to_float64?(raw : Int)
Alias to
#to_float64?
-
#to_float64?(raw : JSON::Any)
Alias to
#to_float64?
-
#to_float64?(raw : NamedTuple)
Returns the
Nil
value represented by given NamedTuple type. -
#to_float64?(raw : Nil)
Alias to
#to_float64?
-
#to_float64?(raw : String)
Alias to
#to_float64?
-
#to_float64?(raw : Symbol)
Alias to
#to_float64?
-
#to_float64?(raw : Time)
Alias to
#to_float64?
-
#to_float64?(raw : YAML::Any)
Returns the
Float64
orNil
value represented by given YAML::Any type. -
#to_float?(raw : Array)
Alias to
#to_float64?
-
#to_float?(raw : Bool)
Returns the
Float64
orNil
value represented by given Bool type. -
#to_float?(raw : Float)
Returns the
Float64
orNil
value represented by given Float type. -
#to_float?(raw : Hash)
Alias to
#to_float64?
-
#to_float?(raw : Int)
Returns the
Float64
orNil
value represented by given Int type. -
#to_float?(raw : JSON::Any)
Returns the
Float64
orNil
value represented by given JSON::Any type. -
#to_float?(raw : NamedTuple)
Alias to
#to_float64?
-
#to_float?(raw : Nil)
Returns the
Float64
orNil
value represented by given Nil type. -
#to_float?(raw : String)
Returns the
Float64
orNil
value represented by given String type. -
#to_float?(raw : Symbol)
Returns the
Nil
value represented by given Symbol type. -
#to_float?(raw : Time)
Returns the
Float64
orNil
value represented by given Time type. -
#to_float?(raw : YAML::Any)
Alias to
#to_float64?
-
#to_hash(raw : Array, value_type : T.class = String) forall T
Returns the
Hash
value represented by givenArray
type, else raise aTypeCastError
exception. -
#to_hash(raw : Bool, value_type : T.class = String) forall T
Returns the
Hash
value represented by givenBool
type, else raise aTypeCastError
exception. -
#to_hash(raw : Float, value_type : T.class = String) forall T
Returns the
Hash
value represented by givenFloat
type, else raise aTypeCastError
exception. -
#to_hash(raw : Hash, value_type : T.class = String) forall T
Returns the
Hash
value represented by givenHash
type, else raise aTypeCastError
exception. -
#to_hash(raw : Int, value_type : T.class = String) forall T
Returns the
Hash
value represented by givenInt
type, else raise aTypeCastError
exception. -
#to_hash(raw : JSON::Any, value_type : T.class = String) forall T
Returns the
Hash
value represented by givenJSON::Any
type, else raise aTypeCastError
exception. -
#to_hash(raw : NamedTuple, value_type : T.class = String) forall T
Returns the
Hash
value represented by givenNamedTuple
type, else raise aTypeCastError
exception. -
#to_hash(raw : Time, value_type : T.class = String) forall T
Returns the
Hash
value represented by givenTime
type, else raise aTypeCastError
exception. -
#to_hash(raw : String, value_type : T.class = String) forall T
Returns the
Hash
value represented by givenString
type, else raise aTypeCastError
exception. -
#to_hash(raw : Symbol, value_type : T.class = String) forall T
Returns the
Hash
value represented by givenSymbol
type, else raise aTypeCastError
exception. -
#to_hash(raw : YAML::Any, value_type : T.class = String) forall T
Returns the
Hash
value represented by givenYAML::Any
type, else raise aTypeCastError
exception. -
#to_hash?(raw : Array, value_type : T.class = String) forall T
Returns the
Hash
orNil
value represented by given Array type. -
#to_hash?(raw : Bool, value_type : T.class = String) forall T
Returns the
Hash
orNil
value represented by given Bool type. -
#to_hash?(raw : Float, value_type : T.class = String) forall T
Returns the
Hash
orNil
value represented by given Float type. -
#to_hash?(raw : Hash, value_type : T.class = String) forall T
Returns the
Hash
orNil
value represented by given Hash type. -
#to_hash?(raw : Int, value_type : T.class = String) forall T
Returns the
Hash
orNil
value represented by given Int type. -
#to_hash?(raw : JSON::Any, value_type : T.class = String) forall T
Returns the
Hash
orNil
value represented by given JSON::Any type. -
#to_hash?(raw : NamedTuple, value_type : T.class = String) forall T
Returns the
Hash
orNil
value represented by given NamedTuple type. -
#to_hash?(raw : Time, value_type : T.class = String) forall T
Returns the
Hash
orNil
value represented by given Time type. -
#to_hash?(raw : String, value_type : T.class = String) forall T
Returns the
Hash
orNil
value represented by given String type. -
#to_hash?(raw : Symbol, value_type : T.class = String) forall T
Returns the
Hash
orNil
value represented by given Symbol type. -
#to_hash?(raw : YAML::Any, value_type : T.class = String) forall T
Returns the
Hash
orNil
value represented by given YAML::Any type. -
#to_int(raw : Array)
Returns the
Int
value represented by givenArray
type, else raise aTypeCastError
exception. -
#to_int(raw : Bool)
Returns the
Int
value represented by givenBool
type, else raise aTypeCastError
exception. -
#to_int(raw : Float)
Returns the
Int
value represented by givenFloat
type, else raise aTypeCastError
exception. -
#to_int(raw : Hash)
Returns the
Int
value represented by givenHash
type, else raise aTypeCastError
exception. -
#to_int(raw : Int)
Returns the
Int
value represented by givenInt
type, else raise aTypeCastError
exception. -
#to_int(raw : JSON::Any)
Returns the
Int
value represented by givenJSON::Any
type, else raise aTypeCastError
exception. -
#to_int(raw : NamedTuple)
Returns the
Int
value represented by givenNamedTuple
type, else raise aTypeCastError
exception. -
#to_int(raw : Nil)
Returns the
Int
value represented by givenNil
type, else raise aTypeCastError
exception. -
#to_int(raw : String)
Returns the
Int
value represented by givenString
type, else raise aTypeCastError
exception. -
#to_int(raw : Symbol)
Returns the
Int
value represented by givenSymbol
type, else raise aTypeCastError
exception. -
#to_int(raw : Time)
Returns the
Int
value represented by givenTime
type, else raise aTypeCastError
exception. -
#to_int(raw : YAML::Any)
Returns the
Int
value represented by givenYAML::Any
type, else raise aTypeCastError
exception. -
#to_int16(raw : Array)
Returns the
Int16
value represented by givenArray
type, else raise aTypeCastError
exception. - #to_int16(raw : Bool)
-
#to_int16(raw : Float)
Returns the
Int16
value represented by givenFloat
type, else raise aTypeCastError
exception. -
#to_int16(raw : Hash)
Returns the
Int16
value represented by givenHash
type, else raise aTypeCastError
exception. -
#to_int16(raw : Int)
Returns the
Int16
value represented by givenInt
type, else raise aTypeCastError
exception. - #to_int16(raw : JSON::Any)
-
#to_int16(raw : NamedTuple)
Returns the
Int16
value represented by givenNamedTuple
type, else raise aTypeCastError
exception. -
#to_int16(raw : Nil)
Returns the
Int16
value represented by givenNil
type, else raise aTypeCastError
exception. - #to_int16(raw : String)
- #to_int16(raw : Symbol)
- #to_int16(raw : Time)
- #to_int16(raw : YAML::Any)
-
#to_int16?(raw : Array)
Returns the
Int16
orNil
value represented by given Array type. -
#to_int16?(raw : Bool)
Returns the
Int16
orNil
value represented by given Bool type. -
#to_int16?(raw : Float)
Returns the
Int16
orNil
value represented by given Float type. -
#to_int16?(raw : Hash)
Returns the
Nil
value represented by given Hash type. -
#to_int16?(raw : Int)
Returns the
Int16
orNil
value represented by given Int type. -
#to_int16?(raw : JSON::Any)
Returns the
Int16
orNil
value represented by given JSON::Any type. -
#to_int16?(raw : NamedTuple)
Returns the
Nil
value represented by given NamedTuple type. -
#to_int16?(raw : Nil)
Returns the
Int16
orNil
value represented by given Nil type. -
#to_int16?(raw : String)
Returns the
Int16
orNil
value represented by given String type. -
#to_int16?(raw : Symbol)
Returns the
Nil
value represented by given Symbol type. -
#to_int16?(raw : Time)
Returns the
Nil
value represented by given Time type. -
#to_int16?(raw : YAML::Any)
Returns the
Int16
orNil
value represented by given YAML::Any type. -
#to_int32(raw : Array)
Returns the
Int32
value represented by givenArray
type, else raise aTypeCastError
exception. - #to_int32(raw : Bool)
-
#to_int32(raw : Float)
Returns the
Int32
value represented by givenFloat
type, else raise aTypeCastError
exception. -
#to_int32(raw : Hash)
Returns the
Int32
value represented by givenHash
type, else raise aTypeCastError
exception. -
#to_int32(raw : Int)
Returns the
Int32
value represented by givenInt
type, else raise aTypeCastError
exception. - #to_int32(raw : JSON::Any)
-
#to_int32(raw : NamedTuple)
Returns the
Int32
value represented by givenNamedTuple
type, else raise aTypeCastError
exception. -
#to_int32(raw : Nil)
Returns the
Int32
value represented by givenNil
type, else raise aTypeCastError
exception. - #to_int32(raw : String)
- #to_int32(raw : Symbol)
- #to_int32(raw : Time)
- #to_int32(raw : YAML::Any)
-
#to_int32?(raw : Array)
Returns the
Int32
orNil
value represented by given Array type. -
#to_int32?(raw : Bool)
Returns the
Int32
orNil
value represented by given Bool type. -
#to_int32?(raw : Float)
Returns the
Int32
orNil
value represented by given Float type. -
#to_int32?(raw : Hash)
Returns the
Nil
value represented by given Hash type. -
#to_int32?(raw : Int)
Returns the
Int32
orNil
value represented by given Int type. -
#to_int32?(raw : JSON::Any)
Returns the
Int32
orNil
value represented by given JSON::Any type. -
#to_int32?(raw : NamedTuple)
Returns the
Nil
value represented by given NamedTuple type. -
#to_int32?(raw : Nil)
Returns the
Int32
orNil
value represented by given Nil type. -
#to_int32?(raw : String)
Returns the
Int32
orNil
value represented by given String type. -
#to_int32?(raw : Symbol)
Returns the
Nil
value represented by given Symbol type. -
#to_int32?(raw : Time)
Returns the
Nil
value represented by given Time type. -
#to_int32?(raw : YAML::Any)
Returns the
Int32
orNil
value represented by given YAML::Any type. -
#to_int64(raw : Array)
Returns the
Int64
value represented by givenArray
type, else raise aTypeCastError
exception. - #to_int64(raw : Bool)
-
#to_int64(raw : Float)
Returns the
Int64
value represented by givenFloat
type, else raise aTypeCastError
exception. -
#to_int64(raw : Hash)
Returns the
Int64
value represented by givenHash
type, else raise aTypeCastError
exception. -
#to_int64(raw : Int)
Returns the
Int64
value represented by givenInt
type, else raise aTypeCastError
exception. - #to_int64(raw : JSON::Any)
-
#to_int64(raw : NamedTuple)
Returns the
Int64
value represented by givenNamedTuple
type, else raise aTypeCastError
exception. -
#to_int64(raw : Nil)
Returns the
Int64
value represented by givenNil
type, else raise aTypeCastError
exception. - #to_int64(raw : String)
- #to_int64(raw : Symbol)
- #to_int64(raw : Time)
- #to_int64(raw : YAML::Any)
-
#to_int64?(raw : Array)
Returns the
Int64
orNil
value represented by given Array type. -
#to_int64?(raw : Bool)
Returns the
Int64
orNil
value represented by given Bool type. -
#to_int64?(raw : Float)
Returns the
Int64
orNil
value represented by given Float type. -
#to_int64?(raw : Hash)
Returns the
Nil
value represented by given Hash type. -
#to_int64?(raw : Int)
Returns the
Int64
orNil
value represented by given Int type. -
#to_int64?(raw : JSON::Any)
Returns the
Int64
orNil
value represented by given JSON::Any type. -
#to_int64?(raw : NamedTuple)
Returns the
Nil
value represented by given NamedTuple type. -
#to_int64?(raw : Nil)
Returns the
Int64
orNil
value represented by given Nil type. -
#to_int64?(raw : String)
Returns the
Int64
orNil
value represented by given String type. -
#to_int64?(raw : Symbol)
Returns the
Nil
value represented by given Symbol type. -
#to_int64?(raw : Time)
Returns the
Int64
orNil
value represented by given Time type. -
#to_int64?(raw : YAML::Any)
Returns the
Int64
orNil
value represented by given YAML::Any type. -
#to_int8(raw : Array)
Returns the
Int8
value represented by givenArray
type, else raise aTypeCastError
exception. - #to_int8(raw : Bool)
-
#to_int8(raw : Float)
Returns the
Int8
value represented by givenFloat
type, else raise aTypeCastError
exception. -
#to_int8(raw : Hash)
Returns the
Int8
value represented by givenHash
type, else raise aTypeCastError
exception. -
#to_int8(raw : Int)
Returns the
Int8
value represented by givenInt
type, else raise aTypeCastError
exception. - #to_int8(raw : JSON::Any)
-
#to_int8(raw : NamedTuple)
Returns the
Int8
value represented by givenNamedTuple
type, else raise aTypeCastError
exception. -
#to_int8(raw : Nil)
Returns the
Int8
value represented by givenNil
type, else raise aTypeCastError
exception. - #to_int8(raw : String)
- #to_int8(raw : Symbol)
- #to_int8(raw : Time)
- #to_int8(raw : YAML::Any)
-
#to_int8?(raw : Array)
Returns the
Int8
orNil
value represented by given Array type. -
#to_int8?(raw : Bool)
Returns the
Int8
orNil
value represented by given Bool type. -
#to_int8?(raw : Float)
Returns the
Int8
orNil
value represented by given Float type. -
#to_int8?(raw : Hash)
Returns the
Nil
value represented by given Hash type. -
#to_int8?(raw : Int)
Returns the
Int8
orNil
value represented by given Int type. -
#to_int8?(raw : JSON::Any)
Returns the
Int8
orNil
value represented by given JSON::Any type. -
#to_int8?(raw : NamedTuple)
Returns the
Nil
value represented by given NamedTuple type. -
#to_int8?(raw : Nil)
Returns the
Int8
orNil
value represented by given Nil type. -
#to_int8?(raw : String)
Returns the
Int8
orNil
value represented by given String type. -
#to_int8?(raw : Symbol)
Returns the
Nil
value represented by given Symbol type. -
#to_int8?(raw : Time)
Returns the
Nil
value represented by given Time type. -
#to_int8?(raw : YAML::Any)
Returns the
Int8
orNil
value represented by given YAML::Any type. -
#to_int?(raw : Array)
Alias to
#to_int32?
-
#to_int?(raw : Bool)
Alias to
#to_int32?
-
#to_int?(raw : Float)
Alias to
#to_int32?
-
#to_int?(raw : Hash)
Alias to
#to_int32?
-
#to_int?(raw : Int)
Alias to
#to_int32?
-
#to_int?(raw : JSON::Any)
Alias to
#to_int32?
-
#to_int?(raw : NamedTuple)
Alias to
#to_int32?
-
#to_int?(raw : Nil)
Alias to
#to_int32?
-
#to_int?(raw : String)
Alias to
#to_int32?
-
#to_int?(raw : Symbol)
Alias to
#to_int32?
-
#to_int?(raw : Time)
Alias to
#to_int32?
-
#to_int?(raw : YAML::Any)
Alias to
#to_int32?
- #to_string(raw : Array)
- #to_string(raw : Bool)
- #to_string(raw : Float)
- #to_string(raw : Hash)
- #to_string(raw : Int)
- #to_string(raw : JSON::Any)
- #to_string(raw : NamedTuple)
- #to_string(raw : Nil)
- #to_string(raw : String)
- #to_string(raw : Symbol)
- #to_string(raw : Time)
- #to_string(raw : YAML::Any)
-
#to_time(raw : Array, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
Returns the
Time
value represented by givenArray
type, else raise aTypeCastError
exception. - #to_time(raw : Bool, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
-
#to_time(raw : Float, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
Returns the
Time
value represented by givenFloat
type, else raise aTypeCastError
exception. -
#to_time(raw : Hash, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
Returns the
Time
value represented by givenHash
type, else raise aTypeCastError
exception. -
#to_time(raw : Int, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
Returns the
Time
value represented by givenInt
type, else raise aTypeCastError
exception. - #to_time(raw : JSON::Any, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
-
#to_time(raw : Array, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
Returns the
Time
value represented by givenArray
type, else raise aTypeCastError
exception. -
#to_time(raw : Nil, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
Returns the
Time
value represented by givenNil
type, else raise aTypeCastError
exception. - #to_time(raw : String, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
- #to_time(raw : Symbol, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
- #to_time(raw : Time, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
- #to_time(raw : YAML::Any, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
-
#to_time?(raw : Array, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
Returns the
Time
orNil
value represented by given Array type. -
#to_time?(raw : Bool, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
Returns the
Nil
value represented by given Bool type. -
#to_time?(raw : Float, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
Returns the
Nil
value represented by given Float type. -
#to_time?(raw : Hash, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
Returns the
Nil
value represented by given Hash type. -
#to_time?(raw : Int, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
Returns the
Time
orNil
value represented by given Int type. -
#to_time?(raw : JSON::Any, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
Returns the
Time
orNil
value represented by given JSON::Any type. -
#to_time?(raw : Array, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
Returns the
Nil
value represented by given NamedTuple type. -
#to_time?(raw : Nil, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
Returns the
Nil
value represented by given Nil type. -
#to_time?(raw : String, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
Returns the
Time
orNil
value represented by given String type. -
#to_time?(raw : Symbol, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
Returns the
Nil
value represented by given Symbol type. -
#to_time?(raw : Time, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
Returns the
Time
orNil
value represented by given Time type. -
#to_time?(raw : YAML::Any, location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)
Returns the
Time
orNil
value represented by given YAML::Any type. -
#to_uint(raw : Array)
Returns the
UInt
value represented by givenArray
type, else raise aTypeCastError
exception. -
#to_uint(raw : Bool)
Returns the
UInt
value represented by givenBool
type, else raise aTypeCastError
exception. -
#to_uint(raw : Float)
Returns the
UInt
value represented by givenFloat
type, else raise aTypeCastError
exception. -
#to_uint(raw : Hash)
Returns the
UInt
value represented by givenHash
type, else raise aTypeCastError
exception. -
#to_uint(raw : Int)
Returns the
UInt
value represented by givenInt
type, else raise aTypeCastError
exception. -
#to_uint(raw : JSON::Any)
Returns the
UInt
value represented by givenJSON::Any
type, else raise aTypeCastError
exception. -
#to_uint(raw : NamedTuple)
Returns the
UInt
value represented by givenNamedTuple
type, else raise aTypeCastError
exception. -
#to_uint(raw : Nil)
Returns the
UInt
value represented by givenNil
type, else raise aTypeCastError
exception. -
#to_uint(raw : String)
Returns the
UInt
value represented by givenString
type, else raise aTypeCastError
exception. -
#to_uint(raw : Symbol)
Returns the
UInt
value represented by givenSymbol
type, else raise aTypeCastError
exception. -
#to_uint(raw : Time)
Returns the
UInt
value represented by givenTime
type, else raise aTypeCastError
exception. -
#to_uint(raw : YAML::Any)
Returns the
UInt
value represented by givenYAML::Any
type, else raise aTypeCastError
exception. -
#to_uint16(raw : Array)
Returns the
UInt16
value represented by givenArray
type, else raise aTypeCastError
exception. - #to_uint16(raw : Bool)
-
#to_uint16(raw : Float)
Returns the
UInt16
value represented by givenFloat
type, else raise aTypeCastError
exception. -
#to_uint16(raw : Hash)
Returns the
UInt16
value represented by givenHash
type, else raise aTypeCastError
exception. -
#to_uint16(raw : Int)
Returns the
UInt16
value represented by givenInt
type, else raise aTypeCastError
exception. - #to_uint16(raw : JSON::Any)
-
#to_uint16(raw : NamedTuple)
Returns the
UInt16
value represented by givenNamedTuple
type, else raise aTypeCastError
exception. -
#to_uint16(raw : Nil)
Returns the
UInt16
value represented by givenNil
type, else raise aTypeCastError
exception. - #to_uint16(raw : String)
- #to_uint16(raw : Symbol)
- #to_uint16(raw : Time)
- #to_uint16(raw : YAML::Any)
-
#to_uint16?(raw : Array)
Returns the
UInt16
orNil
value represented by given Array type. -
#to_uint16?(raw : Bool)
Returns the
UInt16
orNil
value represented by given Bool type. -
#to_uint16?(raw : Float)
Returns the
UInt16
orNil
value represented by given Float type. -
#to_uint16?(raw : Hash)
Returns the
Nil
value represented by given Hash type. -
#to_uint16?(raw : Int)
Returns the
UInt16
orNil
value represented by given Int type. -
#to_uint16?(raw : JSON::Any)
Returns the
UInt16
orNil
value represented by given JSON::Any type. -
#to_uint16?(raw : NamedTuple)
Returns the
Nil
value represented by given NamedTuple type. -
#to_uint16?(raw : Nil)
Returns the
UInt16
orNil
value represented by given Nil type. -
#to_uint16?(raw : String)
Returns the
UInt16
orNil
value represented by given String type. -
#to_uint16?(raw : Symbol)
Returns the
Nil
value represented by given Symbol type. -
#to_uint16?(raw : Time)
Returns the
Nil
value represented by given Time type. -
#to_uint16?(raw : YAML::Any)
Returns the
UInt16
orNil
value represented by given YAML::Any type. -
#to_uint32(raw : Array)
Returns the
UInt32
value represented by givenArray
type, else raise aTypeCastError
exception. - #to_uint32(raw : Bool)
-
#to_uint32(raw : Float)
Returns the
UInt32
value represented by givenFloat
type, else raise aTypeCastError
exception. -
#to_uint32(raw : Hash)
Returns the
UInt32
value represented by givenHash
type, else raise aTypeCastError
exception. -
#to_uint32(raw : Int)
Returns the
UInt32
value represented by givenInt
type, else raise aTypeCastError
exception. - #to_uint32(raw : JSON::Any)
-
#to_uint32(raw : NamedTuple)
Returns the
UInt32
value represented by givenNamedTuple
type, else raise aTypeCastError
exception. -
#to_uint32(raw : Nil)
Returns the
UInt32
value represented by givenNil
type, else raise aTypeCastError
exception. - #to_uint32(raw : String)
- #to_uint32(raw : Symbol)
- #to_uint32(raw : Time)
- #to_uint32(raw : YAML::Any)
-
#to_uint32?(raw : Array)
Alias to
#to_uint?
-
#to_uint32?(raw : Bool)
Alias to
#to_uint?
-
#to_uint32?(raw : Float)
Alias to
#to_uint?
-
#to_uint32?(raw : Hash)
Alias to
#to_uint?
-
#to_uint32?(raw : Int)
Alias to
#to_uint?
-
#to_uint32?(raw : JSON::Any)
Alias to
#to_uint?
-
#to_uint32?(raw : NamedTuple)
Returns the
Nil
value represented by given NamedTuple type. -
#to_uint32?(raw : Nil)
Alias to
#to_uint?
-
#to_uint32?(raw : String)
Alias to
#to_uint?
-
#to_uint32?(raw : Symbol)
Alias to
#to_uint?
-
#to_uint32?(raw : Time)
Alias to
#to_uint?
-
#to_uint32?(raw : YAML::Any)
Alias to
#to_uint?
-
#to_uint64(raw : Array)
Returns the
UInt64
value represented by givenArray
type, else raise aTypeCastError
exception. - #to_uint64(raw : Bool)
-
#to_uint64(raw : Float)
Returns the
UInt64
value represented by givenFloat
type, else raise aTypeCastError
exception. -
#to_uint64(raw : Hash)
Returns the
UInt64
value represented by givenHash
type, else raise aTypeCastError
exception. -
#to_uint64(raw : Int)
Returns the
UInt64
value represented by givenInt
type, else raise aTypeCastError
exception. - #to_uint64(raw : JSON::Any)
-
#to_uint64(raw : NamedTuple)
Returns the
UInt64
value represented by givenNamedTuple
type, else raise aTypeCastError
exception. -
#to_uint64(raw : Nil)
Returns the
UInt64
value represented by givenNil
type, else raise aTypeCastError
exception. - #to_uint64(raw : String)
- #to_uint64(raw : Symbol)
- #to_uint64(raw : Time)
- #to_uint64(raw : YAML::Any)
-
#to_uint64?(raw : Array)
Returns the
UInt64
orNil
value represented by given Array type. -
#to_uint64?(raw : Bool)
Returns the
UInt64
orNil
value represented by given Bool type. -
#to_uint64?(raw : Float)
Returns the
UInt64
orNil
value represented by given Float type. -
#to_uint64?(raw : Hash)
Returns the
Nil
value represented by given Hash type. -
#to_uint64?(raw : Int)
Returns the
UInt64
orNil
value represented by given Int type. -
#to_uint64?(raw : JSON::Any)
Returns the
UInt64
orNil
value represented by given JSON::Any type. -
#to_uint64?(raw : NamedTuple)
Returns the
Nil
value represented by given NamedTuple type. -
#to_uint64?(raw : Nil)
Returns the
UInt64
orNil
value represented by given Nil type. -
#to_uint64?(raw : String)
Returns the
UInt64
orNil
value represented by given String type. -
#to_uint64?(raw : Symbol)
Returns the
Nil
value represented by given Symbol type. -
#to_uint64?(raw : Time)
Returns the
UInt64
orNil
value represented by given Time type. -
#to_uint64?(raw : YAML::Any)
Returns the
UInt64
orNil
value represented by given YAML::Any type. -
#to_uint8(raw : Array)
Returns the
UInt8
value represented by givenArray
type, else raise aTypeCastError
exception. - #to_uint8(raw : Bool)
-
#to_uint8(raw : Float)
Returns the
UInt8
value represented by givenFloat
type, else raise aTypeCastError
exception. -
#to_uint8(raw : Hash)
Returns the
UInt8
value represented by givenHash
type, else raise aTypeCastError
exception. -
#to_uint8(raw : Int)
Returns the
UInt8
value represented by givenInt
type, else raise aTypeCastError
exception. - #to_uint8(raw : JSON::Any)
-
#to_uint8(raw : NamedTuple)
Returns the
UInt8
value represented by givenNamedTuple
type, else raise aTypeCastError
exception. -
#to_uint8(raw : Nil)
Returns the
UInt8
value represented by givenNil
type, else raise aTypeCastError
exception. - #to_uint8(raw : String)
- #to_uint8(raw : Symbol)
- #to_uint8(raw : Time)
- #to_uint8(raw : YAML::Any)
-
#to_uint8?(raw : Array)
Returns the
Int8
orNil
value represented by given Array type. -
#to_uint8?(raw : Bool)
Returns the
Int8
orNil
value represented by given Bool type. -
#to_uint8?(raw : Float)
Returns the
Int8
orNil
value represented by given Float type. -
#to_uint8?(raw : Hash)
Returns the
Nil
value represented by given Hash type. -
#to_uint8?(raw : Int)
Returns the
Int8
orNil
value represented by given Int type. -
#to_uint8?(raw : JSON::Any)
Returns the
Int8
orNil
value represented by given JSON::Any type. -
#to_uint8?(raw : NamedTuple)
Returns the
Nil
value represented by given NamedTuple type. -
#to_uint8?(raw : Nil)
Returns the
Int8
orNil
value represented by given Nil type. -
#to_uint8?(raw : String)
Returns the
Int8
orNil
value represented by given String type. -
#to_uint8?(raw : Symbol)
Returns the
Nil
value represented by given Symbol type. -
#to_uint8?(raw : Time)
Returns the
Nil
value represented by given Time type. -
#to_uint8?(raw : YAML::Any)
Returns the
Int8
orNil
value represented by given YAML::Any type. -
#to_uint?(raw : Array)
Returns the
UInt32
orNil
value represented by given Array type. -
#to_uint?(raw : Bool)
Returns the
UInt32
orNil
value represented by given Bool type. -
#to_uint?(raw : Float)
Returns the
UInt32
orNil
value represented by given Float type. -
#to_uint?(raw : Hash)
Returns the
Nil
value represented by given Hash type. -
#to_uint?(raw : Int)
Returns the
UInt32
orNil
value represented by given Int type. -
#to_uint?(raw : JSON::Any)
Returns the
UInt32
orNil
value represented by given JSON::Any type. -
#to_uint?(raw : NamedTuple)
Aliase to
#to_uint32
-
#to_uint?(raw : Nil)
Returns the
UInt32
orNil
value represented by given Nil type. -
#to_uint?(raw : String)
Returns the
UInt32
orNil
value represented by given String type. -
#to_uint?(raw : Symbol)
Returns the
Nil
value represented by given Symbol type. -
#to_uint?(raw : Time)
Returns the
UInt32
orNil
value represented by given Time type. -
#to_uint?(raw : YAML::Any)
Returns the
UInt32
orNil
value represented by given YAML::Any type.
Macro Summary
-
generate!
Generate to
to_xxx
methods fromto_xxx?
.
Instance Method Detail
Returns the Array
value represented by given Array
type, else raise a TypeCastError
exception.
Returns the Array
value represented by given Bool
type, else raise a TypeCastError
exception.
Returns the Array
value represented by given Float
type, else raise a TypeCastError
exception.
Returns the Array
value represented by given Hash
type, else raise a TypeCastError
exception.
Returns the Array
value represented by given Int
type, else raise a TypeCastError
exception.
Returns the Array
value represented by given JSON::Any
type, else raise a TypeCastError
exception.
Returns the Array
value represented by given NamedTuple
type, else raise a TypeCastError
exception.
Returns the Array
value represented by given Time
type, else raise a TypeCastError
exception.
Returns the Array
value represented by given String
type, else raise a TypeCastError
exception.
Returns the Array
value represented by given Symbol
type, else raise a TypeCastError
exception.
Returns the Array
value represented by given YAML::Any
type, else raise a TypeCastError
exception.
Returns the Array
or Nil
value represented by given Array type.
Returns the Array
or Nil
value represented by given Bool type.
Returns the Array
or Nil
value represented by given Float type.
Returns the Array
or Nil
value represented by given Hash type.
Popcorn.to_array?({"a" => "b", "c" => "d"}) # => ["a", "b", "c", "d"]
Returns the Array
or Nil
value represented by given Int type.
Returns the Array
or Nil
value represented by given JSON::Any type.
Returns the Array
or Nil
value represented by given NamedTuple type.
Returns the Array
or Nil
value represented by given Time type.
Returns the Array
or Nil
value represented by given String type.
Returns the Array
or Nil
value represented by given Symbol type.
Returns the Array
or Nil
value represented by given YAML::Any type.
Returns the Bool
value represented by given Array
type, else raise a TypeCastError
exception.
Returns the Bool
value represented by given Float
type, else raise a TypeCastError
exception.
Returns the Bool
value represented by given Hash
type, else raise a TypeCastError
exception.
Returns the Bool
value represented by given Int
type, else raise a TypeCastError
exception.
Returns the Bool
value represented by given NamedTuple
type, else raise a TypeCastError
exception.
Returns the Bool
value represented by given Nil
type, else raise a TypeCastError
exception.
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.
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.
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.
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.
Returns the Bool
or Nil
value represented by given NamedTuple type.
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.
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.
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.
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.
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.
Returns the Float
value represented by given Array
type, else raise a TypeCastError
exception.
Returns the Float
value represented by given Bool
type, else raise a TypeCastError
exception.
Returns the Float
value represented by given Float
type, else raise a TypeCastError
exception.
Returns the Float
value represented by given Hash
type, else raise a TypeCastError
exception.
Returns the Float
value represented by given Int
type, else raise a TypeCastError
exception.
Returns the Float
value represented by given JSON::Any
type, else raise a TypeCastError
exception.
Returns the Float
value represented by given NamedTuple
type, else raise a TypeCastError
exception.
Returns the Float
value represented by given Nil
type, else raise a TypeCastError
exception.
Returns the Float
value represented by given String
type, else raise a TypeCastError
exception.
Returns the Float
value represented by given Symbol
type, else raise a TypeCastError
exception.
Returns the Float
value represented by given Time
type, else raise a TypeCastError
exception.
Returns the Float
value represented by given YAML::Any
type, else raise a TypeCastError
exception.
Returns the Float32
value represented by given Array
type, else raise a TypeCastError
exception.
Returns the Float32
value represented by given Float
type, else raise a TypeCastError
exception.
Returns the Float32
value represented by given Hash
type, else raise a TypeCastError
exception.
Returns the Float32
value represented by given Int
type, else raise a TypeCastError
exception.
Returns the Float32
value represented by given JSON::Any
type, else raise a TypeCastError
exception.
Returns the Float32
value represented by given NamedTuple
type, else raise a TypeCastError
exception.
Returns the Float32
value represented by given Nil
type, else raise a TypeCastError
exception.
Returns the Float32
value represented by given YAML::Any
type, else raise a TypeCastError
exception.
Returns the Float32
or Nil
value represented by given JSON::Any type.
Returns the Float32
or Nil
value represented by given String type.
Returns the Nil
value represented by given Symbol type.
Returns the Float32
or Nil
value represented by given YAML::Any type.
Returns the Float64
value represented by given Array
type, else raise a TypeCastError
exception.
Returns the Float64
value represented by given Float
type, else raise a TypeCastError
exception.
Returns the Float64
value represented by given Hash
type, else raise a TypeCastError
exception.
Returns the Float64
value represented by given Int
type, else raise a TypeCastError
exception.
Returns the Float64
value represented by given JSON::Any
type, else raise a TypeCastError
exception.
Returns the Float64
value represented by given NamedTuple
type, else raise a TypeCastError
exception.
Returns the Float64
value represented by given Nil
type, else raise a TypeCastError
exception.
Returns the Float64
value represented by given YAML::Any
type, else raise a TypeCastError
exception.
Returns the Float64
or Nil
value represented by given YAML::Any type.
Returns the Float64
or Nil
value represented by given Bool type.
Returns the Float64
or Nil
value represented by given JSON::Any type.
Returns the Float64
or Nil
value represented by given String type.
Returns the Float64
or Nil
value represented by given Time type.
Returns the Hash
value represented by given Array
type, else raise a TypeCastError
exception.
Returns the Hash
value represented by given Bool
type, else raise a TypeCastError
exception.
Returns the Hash
value represented by given Float
type, else raise a TypeCastError
exception.
Returns the Hash
value represented by given Hash
type, else raise a TypeCastError
exception.
Returns the Hash
value represented by given Int
type, else raise a TypeCastError
exception.
Returns the Hash
value represented by given JSON::Any
type, else raise a TypeCastError
exception.
Returns the Hash
value represented by given NamedTuple
type, else raise a TypeCastError
exception.
Returns the Hash
value represented by given Time
type, else raise a TypeCastError
exception.
Returns the Hash
value represented by given String
type, else raise a TypeCastError
exception.
Returns the Hash
value represented by given Symbol
type, else raise a TypeCastError
exception.
Returns the Hash
value represented by given YAML::Any
type, else raise a TypeCastError
exception.
Returns the Hash
or Nil
value represented by given Array type.
Returns the Hash
or Nil
value represented by given Bool type.
Returns the Hash
or Nil
value represented by given Float type.
Returns the Hash
or Nil
value represented by given Hash type.
Returns the Hash
or Nil
value represented by given Int type.
Returns the Hash
or Nil
value represented by given JSON::Any type.
Returns the Hash
or Nil
value represented by given NamedTuple type.
Returns the Hash
or Nil
value represented by given Time type.
Returns the Hash
or Nil
value represented by given String type.
Returns the Hash
or Nil
value represented by given Symbol type.
Returns the Hash
or Nil
value represented by given YAML::Any type.
Returns the Int
value represented by given Array
type, else raise a TypeCastError
exception.
Returns the Int
value represented by given Bool
type, else raise a TypeCastError
exception.
Returns the Int
value represented by given Float
type, else raise a TypeCastError
exception.
Returns the Int
value represented by given Hash
type, else raise a TypeCastError
exception.
Returns the Int
value represented by given Int
type, else raise a TypeCastError
exception.
Returns the Int
value represented by given JSON::Any
type, else raise a TypeCastError
exception.
Returns the Int
value represented by given NamedTuple
type, else raise a TypeCastError
exception.
Returns the Int
value represented by given Nil
type, else raise a TypeCastError
exception.
Returns the Int
value represented by given String
type, else raise a TypeCastError
exception.
Returns the Int
value represented by given Symbol
type, else raise a TypeCastError
exception.
Returns the Int
value represented by given Time
type, else raise a TypeCastError
exception.
Returns the Int
value represented by given YAML::Any
type, else raise a TypeCastError
exception.
Returns the Int16
value represented by given Array
type, else raise a TypeCastError
exception.
Returns the Int16
value represented by given Float
type, else raise a TypeCastError
exception.
Returns the Int16
value represented by given Hash
type, else raise a TypeCastError
exception.
Returns the Int16
value represented by given Int
type, else raise a TypeCastError
exception.
Returns the Int16
value represented by given NamedTuple
type, else raise a TypeCastError
exception.
Returns the Int16
value represented by given Nil
type, else raise a TypeCastError
exception.
Returns the Int16
or Nil
value represented by given Bool type.
Returns the Int16
or Nil
value represented by given JSON::Any type.
Returns the Int16
or Nil
value represented by given String type.
Returns the Int16
or Nil
value represented by given YAML::Any type.
Returns the Int32
value represented by given Array
type, else raise a TypeCastError
exception.
Returns the Int32
value represented by given Float
type, else raise a TypeCastError
exception.
Returns the Int32
value represented by given Hash
type, else raise a TypeCastError
exception.
Returns the Int32
value represented by given Int
type, else raise a TypeCastError
exception.
Returns the Int32
value represented by given NamedTuple
type, else raise a TypeCastError
exception.
Returns the Int32
value represented by given Nil
type, else raise a TypeCastError
exception.
Returns the Int32
or Nil
value represented by given Bool type.
Returns the Int32
or Nil
value represented by given JSON::Any type.
Returns the Int32
or Nil
value represented by given String type.
Returns the Int32
or Nil
value represented by given YAML::Any type.
Returns the Int64
value represented by given Array
type, else raise a TypeCastError
exception.
Returns the Int64
value represented by given Float
type, else raise a TypeCastError
exception.
Returns the Int64
value represented by given Hash
type, else raise a TypeCastError
exception.
Returns the Int64
value represented by given Int
type, else raise a TypeCastError
exception.
Returns the Int64
value represented by given NamedTuple
type, else raise a TypeCastError
exception.
Returns the Int64
value represented by given Nil
type, else raise a TypeCastError
exception.
Returns the Int64
or Nil
value represented by given Bool type.
Returns the Int64
or Nil
value represented by given JSON::Any type.
Returns the Int64
or Nil
value represented by given String type.
Returns the Int64
or Nil
value represented by given Time type.
Returns the Int64
or Nil
value represented by given YAML::Any type.
Returns the Int8
value represented by given Array
type, else raise a TypeCastError
exception.
Returns the Int8
value represented by given Float
type, else raise a TypeCastError
exception.
Returns the Int8
value represented by given Hash
type, else raise a TypeCastError
exception.
Returns the Int8
value represented by given Int
type, else raise a TypeCastError
exception.
Returns the Int8
value represented by given NamedTuple
type, else raise a TypeCastError
exception.
Returns the Int8
value represented by given Nil
type, else raise a TypeCastError
exception.
Returns the Int8
or Nil
value represented by given Bool type.
Returns the Int8
or Nil
value represented by given JSON::Any type.
Returns the Int8
or Nil
value represented by given String type.
Returns the Int8
or Nil
value represented by given YAML::Any type.
Returns the Time
value represented by given Array
type, else raise a TypeCastError
exception.
Returns the Time
value represented by given Float
type, else raise a TypeCastError
exception.
Returns the Time
value represented by given Hash
type, else raise a TypeCastError
exception.
Returns the Time
value represented by given Int
type, else raise a TypeCastError
exception.
Returns the Time
value represented by given Array
type, else raise a TypeCastError
exception.
Returns the Time
value represented by given Nil
type, else raise a TypeCastError
exception.
Returns the Time
or Nil
value represented by given Array type.
Returns the Nil
value represented by given Bool type.
Returns the Nil
value represented by given Float type.
Returns the Nil
value represented by given Hash type.
Returns the Time
or Nil
value represented by given Int type.
Returns the Time
or Nil
value represented by given JSON::Any type.
Returns the Nil
value represented by given NamedTuple type.
Returns the Nil
value represented by given Nil type.
Returns the Time
or Nil
value represented by given String type.
Returns the Nil
value represented by given Symbol type.
Returns the Time
or Nil
value represented by given Time type.
Returns the Time
or Nil
value represented by given YAML::Any type.
Returns the UInt
value represented by given Array
type, else raise a TypeCastError
exception.
Returns the UInt
value represented by given Bool
type, else raise a TypeCastError
exception.
Returns the UInt
value represented by given Float
type, else raise a TypeCastError
exception.
Returns the UInt
value represented by given Hash
type, else raise a TypeCastError
exception.
Returns the UInt
value represented by given Int
type, else raise a TypeCastError
exception.
Returns the UInt
value represented by given JSON::Any
type, else raise a TypeCastError
exception.
Returns the UInt
value represented by given NamedTuple
type, else raise a TypeCastError
exception.
Returns the UInt
value represented by given Nil
type, else raise a TypeCastError
exception.
Returns the UInt
value represented by given String
type, else raise a TypeCastError
exception.
Returns the UInt
value represented by given Symbol
type, else raise a TypeCastError
exception.
Returns the UInt
value represented by given Time
type, else raise a TypeCastError
exception.
Returns the UInt
value represented by given YAML::Any
type, else raise a TypeCastError
exception.
Returns the UInt16
value represented by given Array
type, else raise a TypeCastError
exception.
Returns the UInt16
value represented by given Float
type, else raise a TypeCastError
exception.
Returns the UInt16
value represented by given Hash
type, else raise a TypeCastError
exception.
Returns the UInt16
value represented by given Int
type, else raise a TypeCastError
exception.
Returns the UInt16
value represented by given NamedTuple
type, else raise a TypeCastError
exception.
Returns the UInt16
value represented by given Nil
type, else raise a TypeCastError
exception.
Returns the UInt16
or Nil
value represented by given Bool type.
Returns the UInt16
or Nil
value represented by given JSON::Any type.
Returns the UInt16
or Nil
value represented by given String type.
Returns the Nil
value represented by given Symbol type.
Returns the UInt16
or Nil
value represented by given YAML::Any type.
Returns the UInt32
value represented by given Array
type, else raise a TypeCastError
exception.
Returns the UInt32
value represented by given Float
type, else raise a TypeCastError
exception.
Returns the UInt32
value represented by given Hash
type, else raise a TypeCastError
exception.
Returns the UInt32
value represented by given Int
type, else raise a TypeCastError
exception.
Returns the UInt32
value represented by given NamedTuple
type, else raise a TypeCastError
exception.
Returns the UInt32
value represented by given Nil
type, else raise a TypeCastError
exception.
Returns the UInt64
value represented by given Array
type, else raise a TypeCastError
exception.
Returns the UInt64
value represented by given Float
type, else raise a TypeCastError
exception.
Returns the UInt64
value represented by given Hash
type, else raise a TypeCastError
exception.
Returns the UInt64
value represented by given Int
type, else raise a TypeCastError
exception.
Returns the UInt64
value represented by given NamedTuple
type, else raise a TypeCastError
exception.
Returns the UInt64
value represented by given Nil
type, else raise a TypeCastError
exception.
Returns the UInt64
or Nil
value represented by given Bool type.
Returns the UInt64
or Nil
value represented by given JSON::Any type.
Returns the UInt64
or Nil
value represented by given String type.
Returns the Nil
value represented by given Symbol type.
Returns the UInt64
or Nil
value represented by given Time type.
Returns the UInt64
or Nil
value represented by given YAML::Any type.
Returns the UInt8
value represented by given Array
type, else raise a TypeCastError
exception.
Returns the UInt8
value represented by given Float
type, else raise a TypeCastError
exception.
Returns the UInt8
value represented by given Hash
type, else raise a TypeCastError
exception.
Returns the UInt8
value represented by given Int
type, else raise a TypeCastError
exception.
Returns the UInt8
value represented by given NamedTuple
type, else raise a TypeCastError
exception.
Returns the UInt8
value represented by given Nil
type, else raise a TypeCastError
exception.
Returns the Int8
or Nil
value represented by given Bool type.
Returns the Int8
or Nil
value represented by given JSON::Any type.
Returns the Int8
or Nil
value represented by given String type.
Returns the Int8
or Nil
value represented by given YAML::Any type.
Returns the UInt32
or Nil
value represented by given Bool type.
Returns the UInt32
or Nil
value represented by given JSON::Any type.
Returns the UInt32
or Nil
value represented by given String type.
Returns the UInt32
or Nil
value represented by given Time type.
Returns the UInt32
or Nil
value represented by given YAML::Any type.