struct

Int8

Inherits Int < Number < Steppable < Comparable < Value < Object

Int8 cast methods

Instance methods

cast(other)
cast?(other)
to_array(value_type : T.class = String) forall T

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

to_array?(value_type : T.class = String) forall T

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

to_bool

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

to_bool?

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

to_float

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

to_float32

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

to_float32?

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

to_float64

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

to_float64?

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

to_float?

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

to_hash(value_type : T.class = String) forall T

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

to_hash?(value_type : T.class = String) forall T

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

to_int

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

to_int16

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

to_int16?

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

to_int32

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

to_int32?

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

to_int64

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

to_int64?

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

to_int8

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

to_int8?

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

to_int?

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

to_string

Alias to Object.to_s

to_time(location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)

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

to_time(location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)

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

to_time(location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)

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

to_time(location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)

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

to_time(location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)

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

to_time(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.

to_time(location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)

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

to_time(location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)

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

to_time(location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)

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

to_time(location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)

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

to_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.

to_time(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.

to_time?(location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)

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

to_time?(location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)

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

to_time?(location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)

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

to_time?(location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)

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

to_time?(location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)

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

to_time?(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.

to_time?(location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)

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

to_time?(location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)

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

to_time?(location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)

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

to_time?(location : Time::Location | Nil = nil, formatters : Array(String) | Nil = nil)

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

to_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.

to_time?(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.

to_uint

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

to_uint16

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

to_uint16?

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

to_uint32

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

to_uint32?

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

to_uint64

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

to_uint64?

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

to_uint8

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

to_uint8?

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

to_uint?

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