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 : IO) : Nil
Writes the comment to the output.
Instance methods inherited from class Object
should(matcher : Spectator::Matchers::TypeMatcher(U), message = nil, *, _file = __FILE__, _line = __LINE__) forall Ushould(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should, should_eventually(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_eventually, should_never(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_never, should_not(matcher : Spectator::Matchers::TypeMatcher(U), message = nil, *, _file = __FILE__, _line = __LINE__) forall U
should_not(matcher : Spectator::Matchers::NilMatcher, message = nil, *, _file = __FILE__, _line = __LINE__)
should_not(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_not