Creates a Log::Metadata::Value that wraps the given Type.
Creates Log::Metadata from the given values.
Returns true if both self and other's raw object are equal.
Returns true if the raw object is equal to other.
Checks that the underlying value is Array(self), and returns its value.
Checks that the underlying value is Array(self), and returns its value.
Checks that the underlying value is Bool, and returns its value.
Checks that the underlying value is Bool, and returns its value.
Checks that the underlying value is Float32, and returns its value.
Checks that the underlying value is Float64, and returns its value.
Checks that the underlying value is Float64, and returns its value.
Checks that the underlying value is Float32, and returns its value.
Checks that the underlying value is Int32, and returns its value.
Checks that the underlying value is Int64, and returns its value.
Checks that the underlying value is Int64, and returns its value.
Checks that the underlying value is Int32, and returns its value.
Checks that the underlying value is Nil, and returns its value.
Checks that the underlying value is String, and returns its value.
Checks that the underlying value is String, and returns its value.
Checks that the underlying value is Time, and returns its value.
Checks that the underlying value is Time, and returns its value.
Returns a new Log::Metadata::Value instance with the #raw value #cloneed.
Traverses the depth of a structure and returns the value, otherwise raises.
Traverses the depth of a structure and returns the value.
Returns a new Log::Metadata::Value instance with the #raw value #duped.
Returns the raw underlying value, a Type.
Struct
Value
Object
Object
Creates a Log::Metadata::Value that wraps the given Type.
Creates Log::Metadata from the given values. All keys are converted to String
Returns true if both self and other's raw object are equal.
Returns true if the raw object is equal to other.
Checks that the underlying value is Array(self), and returns its value. Raises otherwise.
Checks that the underlying value is Array(self), and returns its value. Returns nil otherwise.
Checks that the underlying value is Bool, and returns its value. Raises otherwise.
Checks that the underlying value is Bool, and returns its value. Returns nil otherwise.
Checks that the underlying value is Float32, and returns its value. Raises otherwise.
Checks that the underlying value is Float64, and returns its value. Raises otherwise.
Checks that the underlying value is Float64, and returns its value. Returns nil otherwise.
Checks that the underlying value is Float32, and returns its value. Returns nil otherwise.
Checks that the underlying value is Int32, and returns its value. Raises otherwise.
Checks that the underlying value is Int64, and returns its value. Raises otherwise.
Checks that the underlying value is Int64, and returns its value. Returns nil otherwise.
Checks that the underlying value is Int32, and returns its value. Returns nil otherwise.
Checks that the underlying value is String, and returns its value. Raises otherwise.
Checks that the underlying value is String, and returns its value. Returns nil otherwise.
Checks that the underlying value is Time, and returns its value. Raises otherwise.
Checks that the underlying value is Time, and returns its value. Returns nil otherwise.
Returns a new Log::Metadata::Value instance with the #raw value #cloneed.
Traverses the depth of a structure and returns the value, otherwise raises.
Traverses the depth of a structure and returns the value. Returns nil if not found.
Returns a new Log::Metadata::Value instance with the #raw value #duped.
© 2012–2020 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.35.1/Log/Metadata/Value.html