struct

Term::Prompt::Statement

Inherits Struct / Value / Object

A class representing a statement output to prompt.

Constructors

new(prompt : Prompt, newline : Bool = true, color = nil)

Initialize a Statement

Source

Instance methods

call(message)

Output the message to the prompt

Source
color

Color used to display statement

Source
newline

Flag to display newline

Source