class

TOML::KeyValueLine

Inherits TOML::Node < Reference < Object

A key = value line, possibly with a trailing comment.

The line is decomposed so the value can be replaced without losing the surrounding formatting:

leading_ws   key   eq_prefix_ws "=" eq_suffix_ws   value   trailing_raw

trailing_raw covers any whitespace after the value, an optional inline # comment, and the line terminator.

Constructors

new(leading_ws : String, key : Key, eq_prefix_ws : String, eq_suffix_ws : String, value : Value, trailing_raw : String)
Source

Instance methods

eq_prefix_ws
Source
eq_prefix_ws=(eq_prefix_ws : String)
Source
eq_suffix_ws
Source
eq_suffix_ws=(eq_suffix_ws : String)
Source
key=(key : Key)
Source
leading_ws
Source
leading_ws=(leading_ws : String)
Source
to_toml(io : IO) : Nil
Source
trailing_raw
Source
trailing_raw=(trailing_raw : String)
Source
value
Source
value=(value : Value)
Source