struct CON::Any

Defined in:

lib/con/src/any.cr
con.cr

Instance Method Summary

Instance Method Detail

def [](path : Enumerable) : CON::Any #

Returns the value corresponding to the path. If not found, raise.


[View source]
def []=(key : Int, value : CON::Any) #

Sets the value of key to the given value.


[View source]
def []=(path : Enumerable, value : CON::Any) : CON::Any #

Sets the value of key to the given value.


[View source]
def []=(key : String, value : Any) #

Sets the value of key to the given value.


[View source]
def []?(path : Enumerable) : CON::Any | Nil #

Returns the value corresponding to the path. If not found, returns nil.


[View source]
def delete(index : Int) #

Deletes the element at the given index.


[View source]
def delete(path : Enumerable) : CON::Any #

Removes the element corresponding to the path.


[View source]
def delete(key : String) #

Deletes the key-value pair.


[View source]