struct Spectator::Formatting::Components::Comment(T)
Overview
Object that can be stringified pre-pended with a comment mark (#).
Defined in:
spectator/formatting/components/comment.crConstructors
-
.new(content : T)
Creates a comment with the specified content.
Class Method Summary
-
.colorize(content)
Creates a colored comment.
Instance Method Summary
-
#to_s(io)
Writes the comment to the output.