struct CON::Any

Included Modules

Defined in:

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

Instance Method Summary

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

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

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


[View source]
def []=(key : String, value : 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]