Term::Prompt::Expander
A class responsible for rendering expanding options
Used by Prompt to display key options question.
Constants
HELP_CHOICE = {
key: "h",
name: "print help",
value: "help",
}
Constructors
new(prompt : Term::Prompt, prefix : String = prompt.prefix, default : Int32 = 1, auto_hint : Bool = false, palette : Term::Prompt::Palette = prompt.palette)
Create instance of Expander
Instance methods
auto_hint
Sourcecollapsed?
Sourcedefault_key
Sourcedone
Sourceexpand
Sourceexpanded?
Sourcehint
Sourcekeyreturn
Sourcepalette
Sourceprefix
Sourcequestion
Sourceread_input
Sourceselected
Sourcestatus
Source