Config::Any
Inherits Enumerable < Struct < Value < Object
Constructors
Instance methods
Assumes the underlying value is an Array and returns the element at the
given index.
Raises if the underlying value is not an Array.
Assumes the underlying value is a Hash and returns the element with the
given key.
Raises if the underlying value is not a Hash.
Assumes the underlying value is an Array and returns the element at the
given index, or nil if out of bounds.
Raises if the underlying value is not an Array.
Assumes the underlying value is a Hash and returns the element with the
given key, or nil if the key is not present.
Raises if the underlying value is not a Hash.
Assumes the underlying value is indexable and returns the specified element
at the given key path as an Array of type U.
Raises if it is not an Array, not found, or an entry is not able to be
cast to type U.
Assumes the underlying value is indexable and returns the specified element
at the given key path as an Array(Any).
Raises if it is not an Array or not found.
Assumes the underlying value is indexable and yields each element at the
given key path as type U.
Raises if it is not an Array, not found, or an entry is not able to be
cast to type U.
Assumes the underlying value is indexable and returns the specified element
at the given key path as an Array of type U.
Returns nil if it is not an Array or not found.
Note: If an entry is not able to be cast to type U and skip is not
false (the default) it is skipped.
Assumes the underlying value is indexable and returns the specified element
at the given key path as an Array(Any).
Returns nil if it is not an Array or not found.
Assumes the underlying value is indexable and yields each element at the
given key path as type U.
Returns a Bool indicating if the Array was found.
Note: If an entry is not able to be cast to type U it is skipped.
Assumes the underlying value is indexable and returns the element with the
given key as a Bool.
Raises otherwise.
Assumes the underlying value is indexable and returns the element with the
given key as a Bool.
Returns nil otherwise.
Assumes the underlying value is indexable and returns the element with the
given key as a Float64.
Raises otherwise.
Assumes the underlying value is indexable and returns the element with the
given key as a Float32.
Raises otherwise.
Assumes the underlying value is indexable and returns the element with the
given key as a Float32.
Returns nil otherwise.
Assumes the underlying value is indexable and returns the element with the
given key as a Float64.
Returns nil otherwise.
Assumes the underlying value is indexable and returns the specified element
at the given key path as a Hash of type U.
Raises if it is not an Hash, not found, or an entry is not able to be
cast to type U.
Assumes the underlying value is indexable and returns the specified element
at the given key path as an Hash(String, Any).
Raises if it is not an Hash or not found.
Assumes the underlying value is indexable and yields each element at the
given key path as type U.
Raises if it is not a Hash, not found, or an entry is not able to be
cast to type U.
Assumes the underlying value is indexable and returns the specified element
at the given key path as a Hash of type U.
Returns nil if it is not a Hash or not found.
Note: If an entry is not able to be cast to type U and skip is not
false (the default) it is skipped.
Assumes the underlying value is indexable and returns the specified element
at the given key path as an Hash(String, Any).
Returns nil if it is not an Hash or not found.
Assumes the underlying value is indexable and yields each element at the
given key path as type U.
Returns a Bool indicating if the Hash was found.
Note: If an entry is not able to be cast to type U it is skipped.
Assumes the underlying value is indexable and returns the element with the
given key as a Int32.
Raises otherwise.
Assumes the underlying value is indexable and returns the element with the
given key as a Int128.
Raises otherwise.
Assumes the underlying value is indexable and returns the element with the
given key as a Int128.
Returns nil otherwise.
Assumes the underlying value is indexable and returns the element with the
given key as a Int64.
Raises otherwise.
Assumes the underlying value is indexable and returns the element with the
given key as a Int64.
Returns nil otherwise.
Assumes the underlying value is indexable and returns the element with the
given key as a Int32.
Returns nil otherwise.
Assumes the underlying value is indexable and returns the element with the
given key as a String.
Raises otherwise.
Assumes the underlying value is indexable and returns the element with the
given key as a String.
Returns nil otherwise.
Extracts the nested value specified by the sequence of path keys by calling dig at each step, raising if any intermediate step fails.
Extracts the nested value specified by the sequence of path keys by calling
dig at each step, returning nil if any intermediate step is nil.
Assumes the underlying value is an Array or Hash and yields each
of the elements or key/values, always as Config::Any.
Raises if the underlying value is not an Array or Hash.
Assumes the underlying value is indexable and returns a Bool that indicates
if the element at the given paths underlying value is Nil.
Raises if nothing exists at path.
Assumes the underlying value is an Array, Hash, or String and returns
its size.
Raises if the underlying value is not an Array, Hash, or String.
Assumes the underlying value is an Array, Hash, or String and returns
its size.
Raises if the underlying value is not an Array, Hash, or String.