Secrets::Any
Constructors
Instance methods
Assumes the underlying value is an Array or Hash
and returns the element at the given index_or_key.
Raises if the underlying value is not an Array nor a Hash.
Assumes the underlying value is an Array or Hash
and assigns a value at the given index_or_key.
Raises if the underlying value is not an Array nor a Hash.
Assumes the underlying value is an Array or Hash and returns the element
at the given index_or_key, or nil if out of bounds or the key is missing.
Raises if the underlying value is not an Array nor a Hash.
Checks that the underlying value is Array(String), and returns its value.
Raises otherwise.
Checks that the underlying value is Array(String), and returns its value.
Returns nil otherwise.
Checks that the underlying value is Hash(String, String), and returns its value.
Raises otherwise.
Checks that the underlying value is Hash(String, String), and returns its value.
Returns nil otherwise.
Checks that the underlying value is String, and returns its value.
Returns nil otherwise.