struct Int8
- Int8
- Int
- Number
- Value
- Object
Overview
Int8 cast methods
Defined in:
Instance Method Summary
- #cast(other)
- #cast?(other)
-
#to_array(value_type : T.class = String) forall T
Returns the
Arrayvalue represented by givenYAML::Anytype, else raise aTypeCastErrorexception. -
#to_array?(value_type : T.class = String) forall T
Returns the
Arrayvalue represented by givenYAML::Anytype, else raise aTypeCastErrorexception. - #to_bool
- #to_bool?
-
#to_float
Returns the
Floatvalue represented by givenYAML::Anytype, else raise aTypeCastErrorexception. - #to_float32
- #to_float32?
- #to_float64
- #to_float64?
-
#to_float?
Returns the
Floatvalue represented by givenYAML::Anytype, else raise aTypeCastErrorexception. -
#to_hash(value_type : T.class = String) forall T
Returns the
Hashvalue represented by givenYAML::Anytype, else raise aTypeCastErrorexception. -
#to_hash?(value_type : T.class = String) forall T
Returns the
Hashvalue represented by givenYAML::Anytype, else raise aTypeCastErrorexception. -
#to_int
Returns the
Intvalue represented by givenYAML::Anytype, else raise aTypeCastErrorexception. - #to_int16
- #to_int16?
- #to_int32
- #to_int32?
- #to_int64
- #to_int64?
- #to_int8
- #to_int8?
-
#to_int?
Returns the
Intvalue represented by givenYAML::Anytype, else raise aTypeCastErrorexception. -
#to_string
Alias to
Object.to_s - #to_time(location : Time::Location? = nil, formatters : Array(String)? = nil)
- #to_time?(location : Time::Location? = nil, formatters : Array(String)? = nil)
-
#to_uint
Returns the
UIntvalue represented by givenYAML::Anytype, else raise aTypeCastErrorexception. - #to_uint16
- #to_uint16?
- #to_uint32
- #to_uint32?
- #to_uint64
- #to_uint64?
- #to_uint8
- #to_uint8?
-
#to_uint?
Returns the
UIntvalue represented by givenYAML::Anytype, else raise aTypeCastErrorexception.
Instance Method Detail
Returns the Float value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Float32 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Float32 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Float64 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Float64 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Float value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Int value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Int value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the UInt value represented by given YAML::Any type, else raise a TypeCastError exception.