Term::Prompt::Question
Inherits Term::Prompt::Question::Validators / Reference / Object
A class responsible for gathering user input
Constructors
new(prompt : Term::Prompt, **options)
SourceInstance methods
convert_result(value)
Sourcedefault
Sourcedefault?
Sourceecho
Sourceecho?
Sourceerrors
Sourceinspect
Returns an unambiguous and information-rich string representation of this object, typically intended for developers.
This method should usually not be overridden. It delegates to
#inspect(IO) which can be overridden for custom implementations.
Also see #to_s.
palette
Sourcepalette=(palette : Palette)
Sourceprefix
Sourcequestion
Sourceread_input(question)
Sourcerender_error(errors)
Sourcerender_warning(warnings)
Sourceto_s(io)
Sourcevalidators
Sourcevalue
Sourcewarnings
Source