struct CON::Any
- CON::Any
- Struct
- Value
- Object
Included Modules
Defined in:
lib/con/src/any.crcon.cr
Instance Method Summary
-
#[](path : Enumerable) : T::Any
Returns the value corresponding to the path.
-
#[]=(key : String, value : Any) : T::Any
Sets the value of key to the given value.
-
#[]?(path : Enumerable) : T::Any | Nil
Returns the value corresponding to the path.
Instance methods inherited from module Dynany(CON)
[]=(key : Int, value : T::Any)[]=(path : Enumerable, value : T::Any) : T::Any []=, delete(index : Int) : T::Any | Nil
delete(key : String) : T::Any | Nil
delete(path : Enumerable) : T::Any delete
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.