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.cr

Instance Method Summary

Instance Method Detail

def block(&) #

[View source]
def block(contents : String) #

[View source]
def blocks #

The message is based on blocks of elements. The blocks are separated by double new lines.


[View source]
def bold(value : String) #

[View source]
def code(value : String) #

[View source]
def expected(subject : String, got : String) #

[View source]
def expected(subject : TypeChecker::Checkable | String, got : TypeChecker::Checkable) #

[View source]
def locations : Array(SnippetData) #

[View source]
def name : Symbol #

The name of the message.


[View source]
def snippet(value : String, node : SnippetTarget) #

[View source]
def snippet(value : SnippetTarget) #

[View source]
def text(value : String) #

[View source]
def to_terminal(title : String) #

[View source]