Lyricdev
GitHub

class TomlTable

pub class TomlTable

A table: its keys in the order written, each with its value.

Methods

pub static fn new(): TomlTable
pub fn length(): int
pub fn get(key: string): ?TomlValue
pub mut fn set(key: string, value: TomlValue): void

Sets the key's value: in place where the key exists, appended at the end where it is new.

pub fn keys(): string[]
pub fn pairs(): (string, TomlValue)[]

Returns the entries in the order they were written.