class

Dot::Access::Data

Inherits Reference < Object

Constructors

new(hash : Tuple(Int32, Int32, Int32) | Nil = nil)
Source

Instance methods

append(key, value = nil)

Append a value to a key (assumes key refers to an array value)

data.append("")
Source
export

Export data as raw data

data.export
Source
get(key, default = nil)

Get the raw value for a key

data.get("")
Source
getData(key)

Get a data instance for a key

data.getData("")
Source
has(key)

Check if the key exists

data.has("")
Source
import(array data, clobber = true)

Import data into existing data

data.import("")
Source
importData(data, clobber = true)

Import data from an external data into existing data

data.importData("")
Source
remove(key)

Remove a key

data.remove("")
Source
set(key, value = nil)

Set a value for a key

data.set("")
Source