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, style : Symbol? = nil) #

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


[View source]

Instance Method Detail

def call(message : String) #

Output the Statement message to the prompt


[View source]
def color : Symbol? #

[View source]
def newline? : Bool #

[View source]
def style : Symbol? #

[View source]