class Spark::Prompt::Statement
- Spark::Prompt::Statement
- Reference
- Object
Overview
Represents a statement output to the user's prompt.
Defined in:
spark/prompt/statement.crConstructors
-
.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 Summary
-
#call(message : String)
Output the Statement message to the prompt
- #color : Symbol?
- #newline? : Bool
- #style : Symbol?
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.