struct

Spectator::Formatting::Components::Comment(T)

Inherits Struct / Value / Object

Object that can be stringified pre-pended with a comment mark (#).

Constructors

new(content : T)

Creates a comment with the specified content.

Source

Class methods

colorize(content)

Creates a colored comment.

Source

Instance methods

to_s(io : IO) : Nil

Writes the comment to the output.

Source