module Dynany(T)

Direct including types

Defined in:

dynany.cr

Instance Method Summary

Instance Method Detail

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

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


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

Sets the value of key to the given value.


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

Sets the value of key to the given value.


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

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


[View source]
def delete(index : Int) : T::Any | Nil #

Deletes the element at the given index.


[View source]
def delete(key : String) : T::Any | Nil #

Deletes the key-value pair.


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

Removes the element corresponding to the path.


[View source]