module
Mint::Message
Overview
This module contains the shared DSL for building rich, descriptive messages (used by both Error and Warning).
Direct including types
Defined in:
message.crInstance Method Summary
- #block(&)
- #block(contents : String)
-
#blocks
The message is based on blocks of elements.
- #bold(value : String)
- #code(value : String)
- #expected(subject : String, got : String)
- #expected(subject : TypeChecker::Checkable | String, got : TypeChecker::Checkable)
- #locations : Array(SnippetData)
-
#name : Symbol
The name of the message.
- #snippet(value : String, node : SnippetTarget)
- #snippet(value : SnippetTarget)
- #text(value : String)
- #to_terminal(title : String)
Instance Method Detail
def blocks
#
The message is based on blocks of elements. The blocks are separated by double new lines.