Chivi::Dict
Inherits Enumerable < Reference < Object
Constants
EPOCH = Time.utc(2020, 1, 1)
SEP_0 = "ǁ"
SEP_1 = "¦"
Constructors
load(file : String) : Dict
Sourcenew(file : String, preload : Bool = true)
SourceClass methods
dicts
Sourceload!(file : String)
SourceInstance methods
[]=(item : Item)
Source[]?(key)
Sourcedel(key : String, extra : String | Nil = nil)
Sourcefile
Sourcefind(key : String) : Item | Nil
Sourceincludes?(key)
Returns true if the collection contains obj, false otherwise.
[1, 2, 3].includes?(2) # => true
[1, 2, 3].includes?(5) # => false
load!(file : String = @file) : Dict
Sourcemtime
Sourceput(key : String, vals : String | Array(String), extra : String | Nil = nil)
Sourceput(new_item : Item) : Item | Nil
Sourcesave!(file : String = @file)
Sourcescan(chars : Array(Char) | String, offset : Int32 = 0)
Sourceset(key : String, vals : String | Array(String), extra : String | Nil = nil)
Sourcetrie
Source