Skip to main content

Module key_value

Module key_value 

Source
Expand description

Key-value processor for gitlab.rb-style configuration files.

Handles files with lines of the form:

key = "value"
key = 'value'
key = value
# comment lines are preserved

The delimiter, comment prefix, and quoting style are configurable via the profile’s options map.

§Profile Options

KeyDefaultDescription
delimiter"="The key-value separator.
comment_prefix"#"Lines starting with this (after whitespace)
are treated as comments and preserved as-is.

§Formatting Preservation

  • Blank lines, comment lines, and indentation are preserved verbatim.
  • The original quoting style (single, double, or unquoted) is kept.
  • Whitespace around the delimiter is preserved where possible.

Structs§

KeyValueProcessor
Structured processor for key = value configuration files.