class Spark::Prompt::ConfirmationQuestion
Defined in:
spark/prompt/confirmation_question.crConstructors
-
.new(prompt : Spark::Prompt, color : Symbol | Nil = nil, style : Symbol | Nil = nil, default : DefaultAnswerType | Nil = nil, **options)
Creates a new Question.
Instance methods inherited from class Spark::Prompt::Question(Bool, Bool)
call(message : String) : AnswerType | Nilcall(message : String, &) call, color color, default default, style style, validate(validation : Regex, error_message : String | Nil = nil, *, retry_on_failure : Bool = false) validate
Constructor methods inherited from class Spark::Prompt::Question(Bool, Bool)
new(prompt : Spark::Prompt, color : Symbol | Nil = nil, style : Symbol | Nil = nil, default : DefaultAnswerType | Nil = nil, **options)
new
Constructor Detail
def self.new(prompt : Spark::Prompt, color : Symbol | Nil = nil, style : Symbol | Nil = nil, default : DefaultAnswerType | Nil = nil, **options)
#
Creates a new Question.