class Term::Prompt::ConfirmQuestion
- Term::Prompt::ConfirmQuestion
- Term::Prompt::Question
- Reference
- Object
Defined in:
prompt/confirm_question.crConstructors
Instance Method Summary
- #call(message = nil, &block : ConfirmQuestion -> )
-
#call(message)
ditto
- #convert_result(value)
- #create_default_labels
- #create_suffix
- #default : Bool
- #default?
- #negative : String | Nil
- #negative=(negative : String | Nil)
- #negative? : String | Nil
- #positive : String | Nil
- #positive=(positive : String | Nil)
- #positive? : String | Nil
-
#process_input(question)
Decide how to handle input from user
-
#render_question
Render question
- #setup_defaults
- #suffix : String | Nil
- #suffix=(suffix : String | Nil)
- #suffix? : String | Nil
Instance methods inherited from class Term::Prompt::Question
call(message : Nil | String = "", &block : self -> )call(message = "") call, convert_result(value) convert_result, default : String? default, default? default?, echo : Bool echo, echo=(echo : Bool) echo=, echo? : Bool echo?, errors : Array(String) errors, inspect inspect, palette : Palette palette, palette=(palette : Palette) palette=, prefix : String prefix, prefix=(prefix : String) prefix=, process_input(question) process_input, question : String | Nil question, read_input(question) read_input, refresh(lines, lines_to_clear) refresh, render render, render_error(errors) render_error, render_warning(warnings) render_warning, to_s(io) to_s, validators : Array(Validator | ValidatorProc) validators, value : String | Nil value, warnings : Array(String) warnings
Constructor methods inherited from class Term::Prompt::Question
new(prompt : Term::Prompt, **options)
new
Constructor Detail
def self.new(prompt, default = nil, suffix : Nil | String = nil, positive = nil, negative = nil, **options)
#
Instance Method Detail
def process_input(question)
#
Description copied from class Term::Prompt::Question
Decide how to handle input from user