class
TOML::KeyValueLine
- TOML::KeyValueLine
- TOML::Node
- Reference
- Object
Overview
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.
Defined in:
toml/node.crConstructors
Instance Method Summary
- #eq_prefix_ws : String
- #eq_prefix_ws=(eq_prefix_ws : String)
- #eq_suffix_ws : String
- #eq_suffix_ws=(eq_suffix_ws : String)
- #key : Key
- #key=(key : Key)
- #leading_ws : String
- #leading_ws=(leading_ws : String)
- #to_toml(io : IO) : Nil
- #trailing_raw : String
- #trailing_raw=(trailing_raw : String)
- #value : Value
- #value=(value : Value)
Instance methods inherited from class TOML::Node
to_toml(io : IO) : Nilto_toml : String to_toml
Constructor Detail
def self.new(leading_ws : String, key : Key, eq_prefix_ws : String, eq_suffix_ws : String, value : Value, trailing_raw : String)
#