class

TOML::CommentLine

Inherits TOML::Node < Reference < Object

A line that is only a comment, e.g. # hello\n.

raw is the full line including any leading whitespace, the # comment text, and the trailing line terminator (\n or \r\n). The terminator may be empty if the comment was the very last line of the file with no final newline.

Constructors

new(raw : String)
Source

Instance methods

raw=(raw : String)
Source
to_toml(io : IO) : Nil
Source