struct CON::Any
- CON::Any
- Struct
- Value
- Object
Defined in:
lib/con/src/any.crcon.cr
Instance Method Summary
-
#[](path : Enumerable) : CON::Any
Returns the value corresponding to the path.
-
#[]=(key : Int, value : CON::Any)
Sets the value of key to the given value.
-
#[]=(path : Enumerable, value : CON::Any) : CON::Any
Sets the value of key to the given value.
-
#[]=(key : String, value : Any)
Sets the value of key to the given value.
-
#[]?(path : Enumerable) : CON::Any | Nil
Returns the value corresponding to the path.
-
#delete(index : Int)
Deletes the element at the given index.
-
#delete(path : Enumerable) : CON::Any
Removes the element corresponding to the path.
-
#delete(key : String)
Deletes the key-value pair.
Instance Method Detail
Returns the value corresponding to the path. If not found, raise.
Sets the value of key to the given value.
Returns the value corresponding to the path. If not found, returns nil.
Removes the element corresponding to the path.