class Term::Prompt::AnswersCollector
- Term::Prompt::AnswersCollector
- Reference
- Object
Defined in:
prompt/answers_collector.crConstructors
-
.new(prompt : Term::Prompt, **options)
Initialize answer collector
Instance Method Summary
-
#call(&block : AnswersCollector -> )
Start gathering answers
-
#key(name, &block : AnswersCollector -> )
Create answer entry
-
#key(name)
ditto
- #name : String | Nil
- #name? : String | Nil | Nil
-
#values(&block)
Change to collect all values for a key
-
#values
ditto