class TOML::InlineTableValue

Overview

{ key = "val", key2 = 42 }. Inline tables are by spec immutable once written — modification would require deletion and re-insertion. We store them as a parallel list of (path, value) entries where path is the array of decoded key segments (length > 1 for dotted keys like a.b = 1), to preserve both declaration order and the dotted structure.

Defined in:

toml/value.cr

Constructors

Instance Method Summary

Instance methods inherited from class TOML::Value

raw : String raw, to_toml(io : IO) : Nil to_toml

Constructor methods inherited from class TOML::Value

new(raw : String) new

Constructor Detail

def self.new(raw : String, pairs : Array(Tuple(Array(String), Value))) #

[View source]

Instance Method Detail

def pairs : Array(Tuple(Array(String), Value)) #

[View source]