class Spark::Prompt::Statement

Overview

Represents a statement output to the user's prompt.

Defined in:

spark/prompt/statement.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(prompt : Spark::Prompt, newline : Bool = true, color : Symbol | Nil = nil, style : Symbol | Nil = nil) #

Create a new Statement that can be rendered as output to the user's prompt.


Instance Method Detail

def call(message : String) #

Output the Statement message to the prompt


def color : Symbol? #

def newline? : Bool #

def style : Symbol? #